1explain_wait_or_die(3) Library Functions Manual explain_wait_or_die(3)
2
3
4
6 explain_wait_or_die - wait for process to change state and report
7 errors
8
10 #include <libexplain/wait.h>
11 void explain_wait_or_die(int *status);
12
14 The explain_wait_or_die function is used to call the wait(2) system
15 call. On failure an explanation will be printed to stderr, obtained
16 from explain_wait(3), and then the process terminates by calling
17 exit(EXIT_FAILURE).
18
19 This function is intended to be used in a fashion similar to the fol‐
20 lowing example:
21 explain_wait_or_die(status);
22
23 status The status, exactly as to be passed to the wait(2) system call.
24
25 Returns:
26 This function only returns on success. On failure, prints an
27 explanation and exits.
28
30 wait(2) wait for process to change state
31
32 explain_wait(3)
33 explain wait(2) errors
34
35 exit(2) terminate the calling process
36
38 libexplain version 1.4
39 Copyright (C) 2008 Peter Miller
40
41
42
43 explain_wait_or_die(3)