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