diff options
author | Andrew Tridgell <tridge@samba.org> | 1999-12-09 06:46:11 +0000 |
---|---|---|
committer | Andrew Tridgell <tridge@samba.org> | 1999-12-09 06:46:11 +0000 |
commit | d79d1c69f77dd6cc23a4692f6b8bdd82e181194e (patch) | |
tree | 6128c656a0e362084120b60f7ca752f51e87880e /util.c | |
parent | a7d068abffb158d9d805a368a8f4d13da832587d (diff) | |
download | android_external_rsync-d79d1c69f77dd6cc23a4692f6b8bdd82e181194e.tar.gz android_external_rsync-d79d1c69f77dd6cc23a4692f6b8bdd82e181194e.tar.bz2 android_external_rsync-d79d1c69f77dd6cc23a4692f6b8bdd82e181194e.zip |
fixed a bug with waitpid() - I'd forgotten about WEXITSTATUS !
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -870,3 +870,12 @@ char *timestring(time_t t) return(TimeBuf); } + +/**************************************************************************** + like waitpid but does the WEXITSTATUS +****************************************************************************/ +void wait_process(pid_t pid, int *status) +{ + waitpid(pid, status, 0); + *status = WEXITSTATUS(*status); +} |