summaryrefslogtreecommitdiff
path: root/libbb/xvfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'libbb/xvfork.c')
-rw-r--r--libbb/xvfork.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/libbb/xvfork.c b/libbb/xvfork.c
index a74b49f..3fbd0c1 100644
--- a/libbb/xvfork.c
+++ b/libbb/xvfork.c
@@ -16,3 +16,13 @@ pid_t FAST_FUNC xvfork(void)
bb_perror_msg_and_die("vfork");
return pid;
}
+
+#if BB_MMU
+pid_t FAST_FUNC xfork(void)
+{
+ pid_t pid = fork();
+ if (pid < 0)
+ bb_perror_msg_and_die("vfork" + 1);
+ return pid;
+}
+#endif