summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenis Vlasenko2008-07-01 10:55:45 +0000
committerDenis Vlasenko2008-07-01 10:55:45 +0000
commit49b5c516b5f5cb72ba05d5584e574b4a48cee7c1 (patch)
tree5183e4f773a46fa5c09a66c6356a08b00418da69
parent3da5572bfa81a63ce66e41b99e9801c47a05bbbf (diff)
downloadbusybox-49b5c516b5f5cb72ba05d5584e574b4a48cee7c1.zip
busybox-49b5c516b5f5cb72ba05d5584e574b4a48cee7c1.tar.gz
add missing file
-rw-r--r--libbb/xvfork.c18
1 files changed, 18 insertions, 0 deletions
diff --git a/libbb/xvfork.c b/libbb/xvfork.c
new file mode 100644
index 0000000..a74b49f
--- /dev/null
+++ b/libbb/xvfork.c
@@ -0,0 +1,18 @@
+/* vi: set sw=4 ts=4: */
+/*
+ * Utility routines.
+ *
+ * Copyright (C) 2007 Denys Vlasenko
+ *
+ * Licensed under GPL version 2, see file LICENSE in this tarball for details.
+ */
+
+#include "libbb.h"
+
+pid_t FAST_FUNC xvfork(void)
+{
+ pid_t pid = vfork();
+ if (pid < 0)
+ bb_perror_msg_and_die("vfork");
+ return pid;
+}