skalibs

Mirror/fork of https://skarnet.org/software/skalibs/
git clone https://ccx.te2000.cz/git/skalibs
Log | Files | Refs | README | LICENSE

wait_nointr.c (227B)


      1 /* ISC license. */
      2 
      3 #include <sys/wait.h>
      4 #include <errno.h>
      5 #include <skalibs/djbunix.h>
      6 
      7 pid_t wait_nointr (int *wstat)
      8 {
      9   pid_t r ;
     10   do
     11     r = wait(wstat) ;
     12   while ((r == (pid_t)-1) && (errno == EINTR)) ;
     13   return r ;
     14 }