diff options
Diffstat (limited to 'libbb')
| -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 | ||
