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>
This commit is contained in:
@@ -8,20 +8,6 @@
|
|||||||
#include <nxt_conf.h>
|
#include <nxt_conf.h>
|
||||||
#include <nxt_clone.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)
|
#if (NXT_HAVE_CLONE_NEWUSER)
|
||||||
|
|
||||||
|
|||||||
@@ -33,9 +33,6 @@ typedef struct {
|
|||||||
} nxt_clone_t;
|
} nxt_clone_t;
|
||||||
|
|
||||||
|
|
||||||
pid_t nxt_clone(nxt_int_t flags);
|
|
||||||
|
|
||||||
|
|
||||||
#define nxt_is_clone_flag_set(flags, test) \
|
#define nxt_is_clone_flag_set(flags, test) \
|
||||||
((flags & CLONE_##test) == CLONE_##test)
|
((flags & CLONE_##test) == CLONE_##test)
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user