summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--src/nxt_process.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/src/nxt_process.h b/src/nxt_process.h
index 1dd51521..de54e383 100644
--- a/src/nxt_process.h
+++ b/src/nxt_process.h
@@ -13,17 +13,8 @@
#endif
-#if (NXT_HAVE_LINUX_NS)
-/*
- * Old glibc wrapper for getpid(2) returns a cached pid invalidated only by
- * fork(2) calls. As we use clone(2) for container, it returns the wrong pid.
- */
-#define nxt_getpid() \
- syscall(SYS_getpid)
-#else
#define nxt_getpid() \
getpid()
-#endif
typedef pid_t nxt_pid_t;