aboutsummaryrefslogtreecommitdiffstats
path: root/cleanup.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2006-02-01 19:25:34 +0000
committerWayne Davison <wayned@samba.org>2006-02-01 19:25:34 +0000
commitef1f62807e55fcd63ce734ef8fd9b32f4e58d659 (patch)
treefc99e6963a475c0e7bb7b2e69aec053ab9212abf /cleanup.c
parentd8aeda1e5000b7caa1e6faadf0a78275ae2bdf01 (diff)
downloadandroid_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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/cleanup.c b/cleanup.c
index b1bf256d..0163dd25 100644
--- a/cleanup.c
+++ b/cleanup.c
@@ -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;