diff options
Diffstat (limited to 'src/libstddjb/wait_pid_nohang.c')
| -rw-r--r-- | src/libstddjb/wait_pid_nohang.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/libstddjb/wait_pid_nohang.c b/src/libstddjb/wait_pid_nohang.c index 7b27bbe..f22a222 100644 --- a/src/libstddjb/wait_pid_nohang.c +++ b/src/libstddjb/wait_pid_nohang.c @@ -3,6 +3,11 @@ #include <sys/wait.h> #include <skalibs/djbunix.h> + /* + wait_pid_nohang (defined here): reaps everything until it gets pid + waitpid_nohang (macro): only tries to reap pid, doesn't touch others + */ + pid_t wait_pid_nohang (pid_t pid, int *wstat) { int w = 0 ; |
