diff options
-rw-r--r-- | libbb/xvfork.c | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/libbb/xvfork.c b/libbb/xvfork.c new file mode 100644 index 000000000..a74b49f48 --- /dev/null +++ b/libbb/xvfork.c | |||
@@ -0,0 +1,18 @@ | |||
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 | } | ||