1filter_wait(3)                   util/filter.h                  filter_wait(3)
2
3
4

NAME

6       filter_wait   - wrap waitpid to decode the exitcode and why your filter
7       quit
8

SYNOPSIS

10       #include <util/filter.h>
11
12
13       NEOERR *filter_wait(pid_t pid, int options, int *exitcode);
14
15
16
17

ARGUMENTS

19       pid -> the process identifier to wait for
20       options -> the options to pass to waitpid (see wait(2))
21
22

DESCRIPTION

24       filter_wait wraps the waitpid call and raises an error  (with  descrip‐
25       tion)  if  the  call failed.  Note that if the ask for the exitcode and
26       the process exited with a code other  than  zero,  we  don't  raise  an
27       error.  If you don't ask for the exitcode, and it is non-zero, we raise
28       an error
29
30

RETURN VALUE

32       exitcode -> the exitcode if the process existed normally
33
34

SEE ALSO

36       filter_wait(3), filter_create_fp(3), filter_create_fd
37
38
39
40ClearSilver                      12 July 2007                   filter_wait(3)
Impressum