summaryrefslogtreecommitdiff
path: root/util.c
diff options
context:
space:
mode:
authorAndrew Tridgell <tridge@samba.org>2000-08-16 08:34:18 +0000
committerAndrew Tridgell <tridge@samba.org>2000-08-16 08:34:18 +0000
commit82980a23840452c069c37dd7c99c3ac937536847 (patch)
treea20a3de26146eddf5a3354342194e2d038b59f7b /util.c
parentb6a30afc9812ddf685caf7d06dcf102e9e8073e9 (diff)
downloadrsync-82980a23840452c069c37dd7c99c3ac937536847.tar.gz
fixed timing problem with cleanup and io_flush() by using non-blocking
waitpid()
Diffstat (limited to 'util.c')
-rw-r--r--util.c14
1 files changed, 0 insertions, 14 deletions
diff --git a/util.c b/util.c
index 4fef0b3e..b9616963 100644
--- a/util.c
+++ b/util.c
@@ -929,20 +929,6 @@ char *timestring(time_t t)
return(TimeBuf);
}
-
-/****************************************************************************
- like waitpid but does the WEXITSTATUS
-****************************************************************************/
-#ifndef WEXITSTATUS
-#define WEXITSTATUS(stat) ((int)(((stat)>>8)&0xFF))
-#endif
-void wait_process(pid_t pid, int *status)
-{
- waitpid(pid, status, 0);
- *status = WEXITSTATUS(*status);
-}
-
-
#ifdef __INSURE__
#include <dlfcn.h>