wait_reap.c (170B)
1 /* ISC license. */ 2 3 #include <skalibs/djbunix.h> 4 5 unsigned int wait_reap () 6 { 7 unsigned int n = 0 ; 8 int wstat ; 9 while (wait_nohang(&wstat) > 0) n++ ; 10 return n ; 11 }
skalibsMirror/fork of https://skarnet.org/software/skalibs/ | |
git clone https://ccx.te2000.cz/git/skalibs | |
Log | Files | Refs | README | LICENSE |