diff options
Diffstat (limited to 'libbb')
-rw-r--r-- | libbb/Kbuild | 1 | ||||
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 4 |
2 files changed, 2 insertions, 3 deletions
diff --git a/libbb/Kbuild b/libbb/Kbuild index 5cbecd537..5ace87cad 100644 --- a/libbb/Kbuild +++ b/libbb/Kbuild | |||
@@ -109,6 +109,7 @@ lib-y += xfunc_die.o | |||
109 | lib-y += xgetcwd.o | 109 | lib-y += xgetcwd.o |
110 | lib-y += xgethostbyname.o | 110 | lib-y += xgethostbyname.o |
111 | lib-y += xreadlink.o | 111 | lib-y += xreadlink.o |
112 | lib-y += xvfork.o | ||
112 | 113 | ||
113 | # conditionally compiled objects: | 114 | # conditionally compiled objects: |
114 | lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o | 115 | lib-$(CONFIG_FEATURE_MOUNT_LOOP) += loop.o |
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 37d4c274e..9baa813a1 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -226,9 +226,7 @@ void FAST_FUNC forkexit_or_rexec(char **argv) | |||
226 | if (re_execed) | 226 | if (re_execed) |
227 | return; | 227 | return; |
228 | 228 | ||
229 | pid = vfork(); | 229 | pid = xvfork(); |
230 | if (pid < 0) /* wtf? */ | ||
231 | bb_perror_msg_and_die("vfork"); | ||
232 | if (pid) /* parent */ | 230 | if (pid) /* parent */ |
233 | exit(EXIT_SUCCESS); | 231 | exit(EXIT_SUCCESS); |
234 | /* child - re-exec ourself */ | 232 | /* child - re-exec ourself */ |