~mdw
/
qmail
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
bea27748e3a5d9ae1020d8fefa31955a93a1e04c
[qmail]
/
wait_nohang.c
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
}