blob: bea27748e3a5d9ae1020d8fefa31955a93a1e04c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
|
#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
}
|