Skip to content

Commit b9c1a29

Browse files
committed
Isolation: Remove nxt_clone().
Since the previous commit, this is no longer used. Reviewed-by: Alejandro Colomar <[email protected]> Signed-off-by: Andrew Clayton <[email protected]>
1 parent c1299fa commit b9c1a29

File tree

2 files changed

+0
-17
lines changed

2 files changed

+0
-17
lines changed

src/nxt_clone.c

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -8,20 +8,6 @@
88
#include <nxt_conf.h>
99
#include <nxt_clone.h>
1010

11-
#if (NXT_HAVE_LINUX_NS)
12-
13-
pid_t
14-
nxt_clone(nxt_int_t flags)
15-
{
16-
#if defined(__s390x__) || defined(__s390__) || defined(__CRIS__)
17-
return syscall(SYS_clone, NULL, flags);
18-
#else
19-
return syscall(SYS_clone, flags, NULL);
20-
#endif
21-
}
22-
23-
#endif
24-
2511

2612
#if (NXT_HAVE_CLONE_NEWUSER)
2713

src/nxt_clone.h

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,6 @@ typedef struct {
3333
} nxt_clone_t;
3434

3535

36-
pid_t nxt_clone(nxt_int_t flags);
37-
38-
3936
#define nxt_is_clone_flag_set(flags, test) \
4037
((flags & CLONE_##test) == CLONE_##test)
4138

0 commit comments

Comments
 (0)