wait_nohang.c
changeset 0 068428edee47
equal deleted inserted replaced
-1:000000000000 0:068428edee47
       
     1 #include <sys/types.h>
       
     2 #include <sys/wait.h>
       
     3 #include "haswaitp.h"
       
     4 
       
     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 }