fehQlibs 26
Qlibs
Loading...
Searching...
No Matches
wait.c
Go to the documentation of this file.
1#include <sys/types.h>
2#include <sys/wait.h>
3#include "logmsg.h"
4
12int wait_nohang(int *wstat)
13{
14 return waitpid(-1,wstat,WNOHANG);
15}
16
17int wait_pid(int *wstat,int pid)
18{
19 int r;
20
21 do
22 r = waitpid(pid,wstat,0);
23 while ((r == -1) && (errno == EINTR));
24 return r;
25}
int wait_pid(int *wstat, int pid)
Definition: wait.c:17
int wait_nohang(int *wstat)
Definition: wait.c:12