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.
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user