diff options
author | Wayne Davison <wayned@samba.org> | 2006-02-01 19:25:34 +0000 |
---|---|---|
committer | Wayne Davison <wayned@samba.org> | 2006-02-01 19:25:34 +0000 |
commit | ef1f62807e55fcd63ce734ef8fd9b32f4e58d659 (patch) | |
tree | fc99e6963a475c0e7bb7b2e69aec053ab9212abf /cleanup.c | |
parent | d8aeda1e5000b7caa1e6faadf0a78275ae2bdf01 (diff) | |
download | android_external_rsync-ef1f62807e55fcd63ce734ef8fd9b32f4e58d659.tar.gz android_external_rsync-ef1f62807e55fcd63ce734ef8fd9b32f4e58d659.tar.bz2 android_external_rsync-ef1f62807e55fcd63ce734ef8fd9b32f4e58d659.zip |
We should be using wait_process(), not waitpid() directly.
Diffstat (limited to 'cleanup.c')
-rw-r--r-- | cleanup.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -104,7 +104,8 @@ void _exit_cleanup(int code, const char *file, int line) if (cleanup_child_pid != -1) { int status; - if (waitpid(cleanup_child_pid, &status, WNOHANG) == cleanup_child_pid) { + if (wait_process(cleanup_child_pid, &status, WNOHANG) + == cleanup_child_pid) { status = WEXITSTATUS(status); if (status > code) code = status; |