diff options
author | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 14:41:53 +0200 |
---|---|---|
committer | Jannis Hoffmann <jannis@fehcom.de> | 2024-07-09 14:41:53 +0200 |
commit | 5fadc0cbb8577c61d66bd6f19ceaf0507c11e23b (patch) | |
tree | 684758441f5b431d0008253243034b6a4a29417c /src/wait.c | |
parent | 249866e3d1e11dc72eaa1305f4bb479ded92ef38 (diff) |
initial clang-format
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; } |