diff options
Diffstat (limited to 'src/wait.c')
-rw-r--r-- | src/wait.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1,5 +1,6 @@ #include <sys/types.h> #include <sys/wait.h> + #include "logmsg.h" /** @@ -11,15 +12,14 @@ int wait_nohang(int *wstat) { - return waitpid(-1,wstat,WNOHANG); + return waitpid(-1, wstat, WNOHANG); } -int wait_pid(int *wstat,int pid) +int wait_pid(int *wstat, int pid) { int r; - do - r = waitpid(pid,wstat,0); + do r = waitpid(pid, wstat, 0); while ((r == -1) && (errno == EINTR)); return r; } |