diff options
author | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-06 22:39:57 +0000 |
---|---|---|
committer | Denis Vlasenko <vda.linux@googlemail.com> | 2008-11-06 22:39:57 +0000 |
commit | 3854c5ddf4eb267e4e53796eaa1051421dcb4e08 (patch) | |
tree | 7110eecec665bc64fefcdedaa29eb2e2fdf2df41 /libbb/vfork_daemon_rexec.c | |
parent | 70e8f49f71b824bbc7c5ec825eb33108134d1ee5 (diff) | |
download | busybox-w32-3854c5ddf4eb267e4e53796eaa1051421dcb4e08.tar.gz busybox-w32-3854c5ddf4eb267e4e53796eaa1051421dcb4e08.tar.bz2 busybox-w32-3854c5ddf4eb267e4e53796eaa1051421dcb4e08.zip |
runsvdir: alternative methon of supporting runsvdir-as-init. +66 bytes.
*: s/int/pid_t where appropriate
Diffstat (limited to 'libbb/vfork_daemon_rexec.c')
-rw-r--r-- | libbb/vfork_daemon_rexec.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libbb/vfork_daemon_rexec.c b/libbb/vfork_daemon_rexec.c index 17b373cd1..50dc3affe 100644 --- a/libbb/vfork_daemon_rexec.c +++ b/libbb/vfork_daemon_rexec.c | |||
@@ -66,9 +66,9 @@ pid_t FAST_FUNC xspawn(char **argv) | |||
66 | return pid; | 66 | return pid; |
67 | } | 67 | } |
68 | 68 | ||
69 | int FAST_FUNC safe_waitpid(int pid, int *wstat, int options) | 69 | pid_t FAST_FUNC safe_waitpid(pid_t pid, int *wstat, int options) |
70 | { | 70 | { |
71 | int r; | 71 | pid_t r; |
72 | 72 | ||
73 | do | 73 | do |
74 | r = waitpid(pid, wstat, options); | 74 | r = waitpid(pid, wstat, options); |
@@ -76,13 +76,13 @@ int FAST_FUNC safe_waitpid(int pid, int *wstat, int options) | |||
76 | return r; | 76 | return r; |
77 | } | 77 | } |
78 | 78 | ||
79 | int FAST_FUNC wait_any_nohang(int *wstat) | 79 | pid_t FAST_FUNC wait_any_nohang(int *wstat) |
80 | { | 80 | { |
81 | return safe_waitpid(-1, wstat, WNOHANG); | 81 | return safe_waitpid(-1, wstat, WNOHANG); |
82 | } | 82 | } |
83 | 83 | ||
84 | // Wait for the specified child PID to exit, returning child's error return. | 84 | // Wait for the specified child PID to exit, returning child's error return. |
85 | int FAST_FUNC wait4pid(int pid) | 85 | int FAST_FUNC wait4pid(pid_t pid) |
86 | { | 86 | { |
87 | int status; | 87 | int status; |
88 | 88 | ||