summaryrefslogtreecommitdiff
path: root/src/wait.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/wait.c')
-rw-r--r--src/wait.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/wait.c b/src/wait.c
index 869a120..ab58828 100644
--- a/src/wait.c
+++ b/src/wait.c
@@ -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;
}