diff options
author | Ron Yorston <rmy@pobox.com> | 2021-01-14 13:28:49 +0000 |
---|---|---|
committer | Ron Yorston <rmy@pobox.com> | 2021-01-14 13:28:49 +0000 |
commit | 89963b524d211e1aec12b72b3725be05ee95c8cf (patch) | |
tree | 48590aef62b7ee7686b7898256f29def8d9c50b9 /libbb/xfuncs.c | |
parent | 9aa5a829070392c2ac6494d0c4e674c0c2bc7dab (diff) | |
parent | 2b7c1aa92c68524559a2067609d09309d5c09adc (diff) | |
download | busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.tar.gz busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.tar.bz2 busybox-w32-89963b524d211e1aec12b72b3725be05ee95c8cf.zip |
Merge branch 'busybox' into merge
Diffstat (limited to 'libbb/xfuncs.c')
-rw-r--r-- | libbb/xfuncs.c | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/libbb/xfuncs.c b/libbb/xfuncs.c index c92436683..ef990118e 100644 --- a/libbb/xfuncs.c +++ b/libbb/xfuncs.c | |||
@@ -421,15 +421,3 @@ int FAST_FUNC wait4pid(pid_t pid) | |||
421 | return WTERMSIG(status) + 0x180; | 421 | return WTERMSIG(status) + 0x180; |
422 | return 0; | 422 | return 0; |
423 | } | 423 | } |
424 | |||
425 | // Useful when we do know that pid is valid, and we just want to wait | ||
426 | // for it to exit. Not existing pid is fatal. waitpid() status is not returned. | ||
427 | int FAST_FUNC wait_for_exitstatus(pid_t pid) | ||
428 | { | ||
429 | int exit_status, n; | ||
430 | |||
431 | n = safe_waitpid(pid, &exit_status, 0); | ||
432 | if (n < 0) | ||
433 | bb_simple_perror_msg_and_die("waitpid"); | ||
434 | return exit_status; | ||
435 | } | ||