Home
last modified time | relevance | path

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

/freebsd-14.2/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-14.2/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-14.2/sbin/dump/
H A Dtape.c514 int childpid; in startnewtape() local
528 childpid = fork(); in startnewtape()
529 if (childpid < 0) { in startnewtape()
533 if (childpid != 0) { in startnewtape()
543 tapeno+1, parentpid, childpid); in startnewtape()
545 if (waitpid(childpid, &status, 0) == -1) in startnewtape()
546 msg("Waiting for child %d: %s\n", childpid, in startnewtape()
550 childpid, status&0xFF); in startnewtape()
556 msg("Child %d finishes X_FINOK\n", childpid); in startnewtape()
559 msg("Child %d finishes X_ABORT\n", childpid); in startnewtape()
[all …]
/freebsd-14.2/contrib/sendmail/contrib/
H A DsocketmapServer.pl33 my $childpid = fork();
34 if ($childpid) {
37 die "can't fork $!" unless defined($childpid);
/freebsd-14.2/tools/regression/priv/
H A Dmain.c483 pid_t childpid, pid; in run() local
494 childpid = fork(); in run()
495 if (childpid == -1) { in run()
500 if (childpid == 0) { in run()
508 pid = waitpid(childpid, &status, 0); in run()
513 if (pid == childpid) { in run()
/freebsd-14.2/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-14.2/tools/test/stress2/misc/
H A Dvfork.sh123 childpid=`ps -lx | grep -v grep | grep vfork1 |
127 ./vfork2 $childpid
/freebsd-14.2/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-14.2/usr.sbin/cron/cron/
H A Ddo_command.c642 wait_on_child(PID_T childpid, const char *name) in wait_on_child() argument
648 getpid(), name, childpid)) in wait_on_child()
651 while ((pid = waitpid(childpid, &waiter, 0)) < 0 && errno == EINTR) in wait_on_child()
653 while ((pid = wait4(childpid, &waiter, 0, NULL)) < 0 && errno == EINTR) in wait_on_child()
/freebsd-14.2/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-14.2/libexec/rc/tests/
H A Drc_subr_test.sh44 __childpidfile="$(mktemp -t "${__name}.childpid")"
/freebsd-14.2/usr.bin/rpcgen/
H A Drpc_util.h148 extern pid_t childpid;
H A Drpc_scan.c167 waitpid(childpid, &stat, WUNTRACED); in get_token()
H A Drpc_main.c128 pid_t childpid; variable
397 switch (childpid = fork()) { in open_input()
/freebsd-14.2/usr.sbin/syslogd/
H A Dsyslogd.c3279 pid_t pid, childpid; in waitdaemon() local
3281 switch (childpid = fork()) { in waitdaemon()
3298 if (pid == childpid) /* it's gone... */ in waitdaemon()