diff -r 000000000000 -r 068428edee47 wait_nohang.c --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/wait_nohang.c Fri Oct 19 14:06:22 2007 +0200 @@ -0,0 +1,12 @@ +#include +#include +#include "haswaitp.h" + +int wait_nohang(wstat) int *wstat; +{ +#ifdef HASWAITPID + return waitpid(-1,wstat,WNOHANG); +#else + return wait3(wstat,WNOHANG,(struct rusage *) 0); +#endif +}