summaryrefslogtreecommitdiff
path: root/source3/lib/system.c
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2016-02-16 15:46:06 +0100
committerMichael Adam <obnox@samba.org>2016-02-23 22:03:16 +0100
commit8338fe6ac878ef8c04276229ae6e6a8edf9c3e3a (patch)
treef666e85249a141133422f0162f74a5bff198abe5 /source3/lib/system.c
parentb7b7b0a819f52fa645bfd5a417a0a1a2684c7a1f (diff)
downloadsamba-8338fe6ac878ef8c04276229ae6e6a8edf9c3e3a.tar.gz
lib: Remove sys_waitpid
We have waitpid in libreplace Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Michael Adam <obnox@samba.org>
Diffstat (limited to 'source3/lib/system.c')
-rw-r--r--source3/lib/system.c15
1 files changed, 1 insertions, 14 deletions
diff --git a/source3/lib/system.c b/source3/lib/system.c
index 0351e376265..acc121de14d 100644
--- a/source3/lib/system.c
+++ b/source3/lib/system.c
@@ -572,19 +572,6 @@ int sys_mknod(const char *path, mode_t mode, SMB_DEV_T dev)
}
/*******************************************************************
-The wait() calls vary between systems
-********************************************************************/
-
-int sys_waitpid(pid_t pid,int *status,int options)
-{
-#ifdef HAVE_WAITPID
- return waitpid(pid,status,options);
-#else /* HAVE_WAITPID */
- return wait4(pid, status, options, NULL);
-#endif /* HAVE_WAITPID */
-}
-
-/*******************************************************************
System wrapper for getwd. Always returns MALLOC'ed memory, or NULL
on error (malloc fail usually).
********************************************************************/
@@ -1200,7 +1187,7 @@ int sys_pclose(int fd)
*/
do {
- wait_pid = sys_waitpid (entry->child_pid, &wstatus, 0);
+ wait_pid = waitpid (entry->child_pid, &wstatus, 0);
} while (wait_pid == -1 && errno == EINTR);
SAFE_FREE(entry);