summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorAndrew Clayton <a.clayton@nginx.com>2022-11-19 02:27:22 +0000
committerAndrew Clayton <a.clayton@nginx.com>2023-02-17 21:24:18 +0000
commit1388d311c6ead756e75cf3b7c616d054e57fe220 (patch)
tree18d0154a09e9d21bf9addcb4ebbdcd82a2ef97cf /src
parentb0e2d9d0a185e4e2ff4bb87e399ad89119f76d1a (diff)
downloadunit-1388d311c6ead756e75cf3b7c616d054e57fe220.tar.gz
unit-1388d311c6ead756e75cf3b7c616d054e57fe220.tar.bz2
Isolation: Remove nxt_clone().
Since the previous commit, this is no longer used. Reviewed-by: Alejandro Colomar <alx@nginx.com> Signed-off-by: Andrew Clayton <a.clayton@nginx.com>
Diffstat (limited to 'src')
-rw-r--r--src/nxt_clone.c14
-rw-r--r--src/nxt_clone.h3
2 files changed, 0 insertions, 17 deletions
diff --git a/src/nxt_clone.c b/src/nxt_clone.c
index a98aac47..1cd70f6c 100644
--- a/src/nxt_clone.c
+++ b/src/nxt_clone.c
@@ -8,20 +8,6 @@
#include <nxt_conf.h>
#include <nxt_clone.h>
-#if (NXT_HAVE_LINUX_NS)
-
-pid_t
-nxt_clone(nxt_int_t flags)
-{
-#if defined(__s390x__) || defined(__s390__) || defined(__CRIS__)
- return syscall(SYS_clone, NULL, flags);
-#else
- return syscall(SYS_clone, flags, NULL);
-#endif
-}
-
-#endif
-
#if (NXT_HAVE_CLONE_NEWUSER)
diff --git a/src/nxt_clone.h b/src/nxt_clone.h
index c2066ce6..6cea1bd7 100644
--- a/src/nxt_clone.h
+++ b/src/nxt_clone.h
@@ -33,9 +33,6 @@ typedef struct {
} nxt_clone_t;
-pid_t nxt_clone(nxt_int_t flags);
-
-
#define nxt_is_clone_flag_set(flags, test) \
((flags & CLONE_##test) == CLONE_##test)