1
0
Fork 0
qmail/wait_nohang.c
D. J. Bernstein af9625ddf9 qmail 1.01
2009-12-18 13:07:04 +01:00

12 lines
225 B
C

#include <sys/types.h>
#include <sys/wait.h>
#include "haswaitp.h"
int wait_nohang(wstat) int *wstat;
{
#ifdef HASWAITPID
return waitpid(-1,wstat,WNOHANG);
#else
return wait3(wstat,WNOHANG,(struct rusage *) 0);
#endif
}