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

NAME

6       explain_fork_or_die - create a child process and report errors
7

SYNOPSIS

9       #include <libexplain/fork.h>
10       void explain_fork_or_die(void);
11

DESCRIPTION

13       The  explain_fork_or_die  function  is  used to call the fork(2) system
14       call.  On failure an explanation will be printed  to  stderr,  obtained
15       from  explain_fork(3),  and  then  the  process  terminates  by calling
16       exit(EXIT_FAILURE).
17
18       This function is intended to be used in a fashion similar to  the  fol‐
19       lowing example:
20              explain_fork_or_die();
21
22       Returns:
23               This  function  only returns on success.  On failure, prints an
24               explanation and exits.
25

SEE ALSO

27       fork(2) create a child process
28
29       explain_fork(3)
30               explain fork(2) errors
31
32       exit(2) terminate the calling process
33
35       libexplain version 0.40
36       Copyright (C) 2008 Peter Miller
37
38
39
40                                                        explain_fork_or_die(3)
Impressum