diff options
Diffstat (limited to 'libbb/xvfork.c')
-rw-r--r-- | libbb/xvfork.c | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/libbb/xvfork.c b/libbb/xvfork.c deleted file mode 100644 index 3fbd0c1ed..000000000 --- a/libbb/xvfork.c +++ /dev/null | |||
@@ -1,28 +0,0 @@ | |||
1 | /* vi: set sw=4 ts=4: */ | ||
2 | /* | ||
3 | * Utility routines. | ||
4 | * | ||
5 | * Copyright (C) 2007 Denys Vlasenko | ||
6 | * | ||
7 | * Licensed under GPL version 2, see file LICENSE in this tarball for details. | ||
8 | */ | ||
9 | |||
10 | #include "libbb.h" | ||
11 | |||
12 | pid_t FAST_FUNC xvfork(void) | ||
13 | { | ||
14 | pid_t pid = vfork(); | ||
15 | if (pid < 0) | ||
16 | bb_perror_msg_and_die("vfork"); | ||
17 | return pid; | ||
18 | } | ||
19 | |||
20 | #if BB_MMU | ||
21 | pid_t FAST_FUNC xfork(void) | ||
22 | { | ||
23 | pid_t pid = fork(); | ||
24 | if (pid < 0) | ||
25 | bb_perror_msg_and_die("vfork" + 1); | ||
26 | return pid; | ||
27 | } | ||
28 | #endif | ||