Home
last modified time | relevance | path

Searched refs:childpid (Results 1 – 15 of 15) sorted by relevance

/freebsd/tools/regression/sockets/unix_sendtorace/
H A Dunix_sendtorace.c96 pid_t childpid; in stream_test() local
114 childpid = fork(); in stream_test()
115 if (childpid < 0) in stream_test()
118 if (childpid != 0) { in stream_test()
121 kill(childpid, SIGTERM); in stream_test()
172 pid_t childpid; in datagram_test() local
187 childpid = fork(); in datagram_test()
188 if (childpid < 0) in datagram_test()
191 if (childpid != 0) { in datagram_test()
194 kill(childpid, SIGTERM); in datagram_test()
/freebsd/contrib/openbsm/bin/praudit/
H A Dpraudit.c130 pid_t childpid, pid; in main() local
213 childpid = fork(); in main()
214 if (childpid == 0) { in main()
225 while ((pid = waitpid(childpid, NULL, 0)) != childpid); in main()
/freebsd/sbin/dump/
H A Dtape.c508 int childpid; in startnewtape() local
522 childpid = fork(); in startnewtape()
523 if (childpid < 0) { in startnewtape()
527 if (childpid != 0) { in startnewtape()
537 tapeno+1, parentpid, childpid); in startnewtape()
539 if (waitpid(childpid, &status, 0) == -1) in startnewtape()
540 msg("Waiting for child %d: %s\n", childpid, in startnewtape()
544 childpid, status&0xFF); in startnewtape()
550 msg("Child %d finishes X_FINOK\n", childpid); in startnewtape()
553 msg("Child %d finishes X_ABORT\n", childpid); in startnewtape()
[all …]
/freebsd/contrib/sendmail/contrib/
H A DsocketmapServer.pl33 my $childpid = fork();
34 if ($childpid) {
37 die "can't fork $!" unless defined($childpid);
/freebsd/tools/regression/priv/
H A Dmain.c481 pid_t childpid, pid; in run() local
492 childpid = fork(); in run()
493 if (childpid == -1) { in run()
498 if (childpid == 0) { in run()
506 pid = waitpid(childpid, &status, 0); in run()
511 if (pid == childpid) { in run()
/freebsd/contrib/ntp/libntp/
H A Dwork_fork.c449 int childpid; in fork_blocking_child() local
513 childpid = fork(); in fork_blocking_child()
514 if (-1 == childpid) { in fork_blocking_child()
519 if (childpid) { in fork_blocking_child()
521 TRACE(1, ("forked worker child (pid %d)\n", childpid)); in fork_blocking_child()
522 c->pid = childpid; in fork_blocking_child()
/freebsd/tools/test/stress2/misc/
H A Dvfork.sh114 childpid=`ps -lx | grep -v grep | grep vfork1 |
118 ./vfork2 $childpid
/freebsd/contrib/netbsd-tests/fs/common/
H A Dfstest_nfs.c82 pid_t childpid; in donewfs() local
109 switch ((childpid = fork())) { in donewfs()
152 args->ta_childpid = childpid; in donewfs()
H A Dfstest_puffs.c250 pid_t childpid; in donewfs() local
273 switch ((childpid = fork())) { in donewfs()
316 args->pta_childpid = childpid; in donewfs()
/freebsd/contrib/openbsm/bin/auditreduce/
H A Dauditreduce.c651 pid_t childpid, pid; in main() local
855 childpid = fork(); in main()
856 if (childpid == 0) { in main()
868 while ((pid = waitpid(childpid, &status, 0)) != childpid); in main()
/freebsd/usr.sbin/cron/cron/
H A Ddo_command.c780 wait_on_child(PID_T childpid, const char *name) in wait_on_child() argument
786 getpid(), name, childpid)) in wait_on_child()
789 while ((pid = waitpid(childpid, &waiter, 0)) < 0 && errno == EINTR) in wait_on_child()
791 while ((pid = wait4(childpid, &waiter, 0, NULL)) < 0 && errno == EINTR) in wait_on_child()
/freebsd/libexec/rc/tests/
H A Drc_subr_test.sh56 __childpidfile="$(mktemp -t "${__name}.childpid")"
/freebsd/usr.bin/rpcgen/
H A Drpc_util.h144 extern pid_t childpid;
H A Drpc_scan.c159 waitpid(childpid, &stat, WUNTRACED); in get_token()
H A Drpc_main.c120 pid_t childpid; variable
389 switch (childpid = fork()) { in open_input()