Lines Matching full:fork
39 * FUNCTION TITLE : fork desired number of copies of the current process
40 * fork a process and return control to caller
58 * The background function will do a fork of the current process.
62 * If the fork fails and prefix is not NULL, a error message is printed
65 * The forker function will fork <ncopies> minus one copies
70 * fork the next process, if necessary, and on and on.
86 * If the prefix parameter is not NULL and the fork system call fails,
112 #include <unistd.h> /* fork, getpid, sleep */
122 * This function will fork and the parent will exit zero and
127 * 0 : if fork did not fail
128 * !0 : if fork failed, the return value will be the errno.
132 switch (fork()) { in background()
136 "%s: In %s background(), fork() failed, errno:%d %s\n", in background()
152 * Forker will fork ncopies-1 copies of self.
158 /* if fork fails. The prefix (program name) will */ in forker()
171 if ((pid = fork()) == -1) { in forker()
174 "%s: %s,forker(): fork() failed, errno:%d %s\n", in forker()
198 if ((pid = fork()) == -1) { in forker()
201 "%s: %s,forker(): fork() failed, errno:%d %s\n", in forker()