1/* Public domain. */
2
3#include <sys/types.h>
4#include <sys/wait.h>
5#include "haswaitp.h"
6
7int wait_nohang(wstat) int *wstat;
8{
9#ifdef HASWAITPID
10 return waitpid(-1,wstat,WNOHANG);
11#else
12 return wait3(wstat,WNOHANG,(struct rusage *) 0);
13#endif
14}