1explain_wait4_or_die(3)    Library Functions Manual    explain_wait4_or_die(3)
2
3
4

NAME

6       explain_wait4_or_die  -  wait  for  process  to change state and report
7       errors
8

SYNOPSIS

10       #include <libexplain/wait4.h>
11       void explain_wait4_or_die(int pid, int  *status,  int  options,  struct
12       rusage *rusage);
13

DESCRIPTION

15       The  explain_wait4_or_die  function is used to call the wait4(2) system
16       call.  On failure an explanation will be printed  to  stderr,  obtained
17       from  explain_wait4(3),  and  then  the  process  terminates by calling
18       exit(EXIT_FAILURE).
19
20       This function is intended to be used in a fashion similar to  the  fol‐
21       lowing example:
22              explain_wait4_or_die(pid, status, options, rusage);
23
24       pid     The pid, exactly as to be passed to the wait4(2) system call.
25
26       status  The  status,  exactly  as  to  be passed to the wait4(2) system
27               call.
28
29       options The options, exactly as to be passed  to  the  wait4(2)  system
30               call.
31
32       rusage  The  rusage,  exactly  as  to  be passed to the wait4(2) system
33               call.
34
35       Returns:
36               This function only returns on success, see  wait4(2)  for  more
37               information.  On failure, prints an explanation and exits.
38

SEE ALSO

40       wait4(2)
41               wait for process to change state
42
43       explain_wait4(3)
44               explain wait4(2) errors
45
46       exit(2) terminate the calling process
47
49       libexplain version 0.40
50       Copyright (C) 2008 Peter Miller
51
52
53
54                                                       explain_wait4_or_die(3)
Impressum