summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_process.h
diff options
context:
space:
mode:
authorAlejandro Colomar <alx.manpages@gmail.com>2022-06-18 15:59:12 +0200
committerAlejandro Colomar <alx.manpages@gmail.com>2022-07-18 19:09:30 +0200
commit5015b05fc495bf3e87f8decfd1617a4a399939d4 (patch)
treec55a67d647c323f718f3ebcf4673bb49d9515567 /src/nxt_process.h
parent0d15cbd5b6136d8a92a23895bd83eb322aa633ea (diff)
downloadunit-5015b05fc495bf3e87f8decfd1617a4a399939d4.tar.gz
unit-5015b05fc495bf3e87f8decfd1617a4a399939d4.tar.bz2
Replaced Linux syscall macros by libc macros.
User-space programs should use the SYS_*form, as documented in syscall(2). That also adds compatibility to non-Linux systems.
Diffstat (limited to 'src/nxt_process.h')
-rw-r--r--src/nxt_process.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index 694f457e..642c3419 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -19,7 +19,7 @@
* fork(2) calls. As we use clone(2) for container, it returns the wrong pid.
*/
#define nxt_getpid() \
- syscall(__NR_getpid)
+ syscall(SYS_getpid)
#else
#define nxt_getpid() \
getpid()