12 lines
225 B
C
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
|
|
}
|