nightmaremail

Unnamed repository; edit this file 'description' to name the repository.
Log | Files | Refs

wait_nohang.c (230B)


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