summaryrefslogtreecommitdiff
path: root/src/wait.c
diff options
context:
space:
mode:
authorJannis Hoffmann <jannis@fehcom.de>2024-07-09 14:41:53 +0200
committerJannis Hoffmann <jannis@fehcom.de>2024-07-09 14:41:53 +0200
commit5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (patch)
tree684758441f5b431d0008253243034b6a4a29417c /src/wait.c
parent249866e3d1e11dc72eaa1305f4bb479ded92ef38 (diff)
initial clang-format
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;
}