Symbol: fork
bin/cpdup/hclink.c
33
if ((hc->pid = fork()) == 0) {
bin/mined/mined1.c
580
switch (pid = fork()) {
bin/notty/notty.c
94
if (fork() == 0) {
bin/pax/ar_io.c
1247
zpid = fork();
bin/sh/jobs.c
913
pid = fork();
crypto/libressl/apps/openssl/speed.c
2060
if (fork()) {
crypto/openssh/auth-pam.c
195
switch ((pid = fork())) {
crypto/openssh/clientloop.c
1300
pid = fork();
crypto/openssh/misc.c
2804
switch ((pid = fork())) {
crypto/openssh/readconf.c
552
if ((pid = fork()) == 0) {
crypto/openssh/readpass.c
272
if ((pid = fork()) == -1) {
crypto/openssh/readpass.c
69
if ((pid = fork()) == -1) {
crypto/openssh/scp.c
248
if ((pid = fork()) == -1)
crypto/openssh/scp.c
313
*pid = fork();
crypto/openssh/scp.c
397
pid = fork();
crypto/openssh/session.c
449
switch ((pid = fork())) {
crypto/openssh/session.c
601
switch ((pid = fork())) {
crypto/openssh/sftp.c
2384
if ((sshpid = fork()) == -1)
crypto/openssh/sftp.c
336
if ((pid = fork()) == -1)
crypto/openssh/ssh-agent.c
2384
pid = fork();
crypto/openssh/ssh-pkcs11-client.c
542
if ((pid = fork()) == -1) {
crypto/openssh/ssh-sk-client.c
77
if ((pid = fork()) == -1) {
crypto/openssh/ssh.c
1815
switch ((pid = fork())) {
crypto/openssh/sshconnect.c
134
if ((pid = fork()) == 0) {
crypto/openssh/sshconnect.c
1709
pid = fork();
crypto/openssh/sshconnect.c
217
if ((pid = fork()) == 0) {
crypto/openssh/sshconnect2.c
2040
if ((pid = fork()) == -1) {
crypto/openssh/sshd-session.c
334
pid = fork();
crypto/openssh/sshd-session.c
409
pmonitor->m_pid = fork();
crypto/openssh/sshd.c
1064
if ((child->pid = fork()) == 0) {
games/atc/input.c
326
if (fork() == 0) /* child */
games/hack/hack.pager.c
442
f = fork();
games/hack/hack.pri.c
112
if (!fork())
games/larn/bill.c
119
if (fork() == 0) {
games/larn/tok.c
54
if (fork() == 0) {
games/larn/tok.c
86
if ((ic = fork()) == 0) { /* child */
games/rogue/machdep.c
509
pid = fork();
games/sail/dr_main.c
144
switch (fork()) {
games/wump/wump.c
739
switch (pid = fork()) {
include/unistd.h
391
pid_t fork(void);
initrd/oinit/oinit.c
110
if ((pid = fork()) == 0) {
lib/libc/gen/daemon.c
58
switch (fork()) {
lib/libc/gen/utmpx.c
345
switch (pid = fork()) {
lib/libc/gen/wordexp.c
158
if ((pid = fork()) < 0) {
lib/libc/net/rcmdsh.c
111
cpid = fork();
lib/libc/net/rcmdsh.c
125
cpid = fork();
lib/libc/stdlib/system.c
70
switch(pid = fork()) {
lib/libc/sys/fork.c
58
__weak_reference(__fork, fork);
lib/libthread_xu/thread/thr_fork.c
317
__strong_reference(_fork, fork);
lib/libthread_xu/thread/thr_syscalls.c
678
return (fork());
lib/libutil/pty.c
94
switch (pid = fork()) {
lib/libutil/pw_util.c
249
switch ((pid = fork())) {
lib/libutil/pw_util.c
300
switch ((editpid = fork())) {
libexec/atrun/atrun.c
102
res = fork();
libexec/atrun/atrun.c
149
pid = fork();
libexec/atrun/atrun.c
262
pid = fork();
libexec/bootpd/bootpd.c
384
if (fork())
libexec/bootpd/bootpgw/bootpgw.c
355
if (fork())
libexec/comsat/comsat.c
172
switch (fork()) {
libexec/dma/dma.c
267
pid = fork();
libexec/dma/local.c
74
child = fork();
libexec/ftpd/ftpd.c
476
switch (pid = fork()) {
libexec/ftpd/popen.c
113
pid = (strcmp(gargv[0], _PATH_LS) == 0) ? fork() : vfork();
libexec/pppoed/pppoed.c
268
switch ((ret = fork())) {
libexec/pppoed/pppoed.c
274
switch (fork()) {
libexec/rpc.rwalld/rwalld.c
146
if (fork() == 0) {
libexec/telnetd/sys_term.c
993
if ((i = fork()) < 0)
libexec/tftpd/tftpd.c
196
pid = fork();
sbin/devd/devd.cc
235
switch (pid = ::fork()) {
sbin/dhclient/dhclient.c
1763
pid = fork();
sbin/dhclient/dhclient.c
2210
pid = fork();
sbin/dhclient/dhclient.c
376
pid = fork();
sbin/disklabel32/disklabel.c
750
while ((pid = fork()) < 0) {
sbin/disklabel64/disklabel64.c
800
while ((pid = fork()) < 0) {
sbin/dump/tape.c
512
childpid = fork();
sbin/dump/tape.c
685
(slaves[i].pid = fork()) < 0)
sbin/fsck/preen.c
265
dk->pid = fork();
sbin/hammer/cmd_cleanup.c
1287
if ((pid = fork()) == 0) {
sbin/hammer/cmd_mirror.c
1111
if ((pid1 = fork()) == 0) {
sbin/hammer/cmd_mirror.c
1191
if ((pid2 = fork()) == 0) {
sbin/hammer2/cmd_info.c
294
if (fork() == 0) {
sbin/hammer2/cmd_service.c
1024
if ((pid = fork()) < 0) {
sbin/hammer2/cmd_service.c
1061
if ((pid = fork()) < 0) {
sbin/init/init.c
1193
if ((pid = fork()) == -1) {
sbin/init/init.c
1251
if ((pid = fork()) == -1) {
sbin/init/init.c
1598
if ((pid = fork()) == 0) {
sbin/init/init.c
664
if ((pid = fork()) == 0) {
sbin/init/init.c
794
if ((pid = fork()) == 0) {
sbin/ip6fw/ip6fw.c
1332
switch((preproc = fork())) {
sbin/ipfw/ipfw2.c
4205
switch((preproc = fork())) {
sbin/ipfw3/ipfw3.c
1154
switch ((preproc = fork())) {
sbin/jscan/jscan.c
423
if ((pid = fork()) == 0) {
sbin/mount/mount.c
444
switch (pid = fork()) {
sbin/mount_devfs/mount_devfs.c
149
if (fork() == 0) {
sbin/mount_devfs/mount_devfs.c
159
if (fork() == 0) {
sbin/mount_ufs/mount.c
398
switch (pid = fork()) {
sbin/newfs/mkfs.c
173
if ((child = fork()) != 0) {
sbin/nfsd/nfsd.c
329
switch ((pid = fork())) {
sbin/nfsiod/nfsiod.c
129
switch (fork()) {
sbin/rconfig/server.c
106
if (fork() == 0) {
sbin/rconfig/server.c
115
if (fork() == 0) {
sbin/rconfig/server.c
82
if (fork() == 0) {
sbin/shutdown/shutdown.c
229
forkpid = fork();
sbin/svc/execute.c
111
pid = fork();
sbin/svc/execute.c
456
if ((DirectPid = fork()) == 0) {
sbin/vinum/commands.c
375
pid = fork(); /* into the background with you */
sbin/vinum/commands.c
434
pid = fork(); /* into the background with you */
sbin/vinum/v.c
761
pid = fork(); /* do this in the background */
sbin/vinum/v.c
819
pid = (int) fork();
sys/platform/vkernel64/platform/init.c
204
while ((childpid = fork()) != 0) {
sys/sys/sysunion.h
16
struct fork_args fork;
test/debug/buserr.c
39
pid = fork();
test/debug/fdpassing.c
36
if (fork() == 0) {
test/debug/umtx.c
105
if ((pid = fork()) == 0) {
test/illumos/oclo/oclo.c
1306
pid_t child = fork();
test/interbench/hackbench.c
110
switch (fork()) {
test/interbench/hackbench.c
124
switch (fork()) {
test/interbench/interbench.c
1337
if ((load_pid = fork()) == -1)
test/interbench/interbench.c
1345
if ((bench_pid = fork()) == -1)
test/lockf/lockf.c
155
pid[i] = fork();
test/socket/accept/block/accept_block.c
95
pid = fork();
test/socket/accept/nonblock/accept_nblock.c
94
pid = fork();
test/socket/accept4/block/accept4_block.c
104
pid = fork();
test/socket/accept4/cloexec/accept4_cloexec.c
108
pid = fork();
test/socket/accept4/cloexec/accept4_cloexec.c
86
pid = fork();
test/socket/accept4/nonblock/accept4_nblock.c
86
pid = fork();
test/socket/recvmsg/cloexec/recvmsg_cloexec.c
30
pid = fork();
test/socket/socket/cloexec/socket_cloexec.c
27
pid = fork();
test/socket/socketpair/cloexec/sockpair_cloexec.c
24
pid = fork();
test/stress/fsstress/fsstress.c
455
if (fork() == 0) {
test/stress/stress2/lib/main.c
126
if ((r[i] = fork()) == 0) {
test/stress/stress2/lib/main.c
158
p = fork();
test/stress/stress2/testcases/badcode/badcode.c
92
if ((pid = fork()) == 0) {
test/stress/stress2/testcases/lockf/lockf.c
103
pid = fork();
test/stress/stress2/testcases/mkfifo/mkfifo.c
130
if ((pid = fork()) == 0) {
test/stress/stress2/testcases/run/run.c
104
if ((r[i] = fork()) == 0) {
test/stress/stress2/testcases/shm/shm.c
137
pid = fork();
test/stress/stress2/testcases/socket/socket.c
110
if ((pid = fork()) == 0) {
test/stress/stress2/testcases/tcp/tcp.c
168
if ((pid = fork()) == 0) {
test/stress/t_mlockall.c
32
if (fork() == 0) {
test/stress/t_mlockall.c
35
fork();
test/stress/webstress/webstress.c
170
if ((pid = fork()) == 0) {
test/sysperf/exec1.c
74
if (fork() == 0) {
test/sysperf/fork1.c
16
if (fork() == 0) {
test/sysperf/lockmgr1.c
40
if (fork() == 0) {
test/sysperf/lockmgr2.c
51
if (fork() == 0) {
test/sysperf/lockmgr3.c
50
if (fork() == 0) {
test/sysperf/loop2.c
29
if (fork() == 0) {
test/sysperf/loop4.c
42
if (fork() == 0) {
test/sysperf/loop900k.c
60
if (j == 99 || fork() == 0) {
test/sysperf/mutex1.c
51
if ((pid = fork()) == 0) {
test/sysperf/mutex2.c
47
if ((pid = fork()) == 0) {
test/sysperf/mutex3.c
88
if ((pid = fork()) == 0) {
test/sysperf/mutex4.c
78
if ((pid = fork()) == 0) {
test/sysperf/pipe1.c
26
if (fork() == 0) {
test/sysperf/pipe2.c
63
if (fork() == 0) {
test/sysperf/pipe900k.c
76
if (j == 99 || fork() == 0) {
test/sysperf/randread.c
103
if (fork() == 0) {
test/sysperf/sleep900k.c
60
if (j == 99 || fork() == 0) {
test/sysperf/socketpair.c
63
if (fork() == 0) {
test/sysperf/syscall1.c
38
if (fork() == 0) {
test/sysperf/syscall2.c
63
if (fork() == 0) {
test/sysperf/umtx1.c
30
if (fork() == 0) {
test/testcases/io/sendfd_1/sendfd_1.c
15
i = fork();
test/testcases/mem/mmap_madvise_1/mmap_madvise_1.c
72
rc = fork();
test/testcases/posixipc/common/common.c
208
pid = fork();
test/testcases/posixipc/timedwait_locked/timedwait_locked.c
15
pid = fork();
test/testcases/posixipc/wait_locked/wait_locked.c
11
pid = fork();
test/testcases/sysv/sysvmsg/msgtest.c
162
switch ((child_pid = fork())) {
test/testcases/sysv/sysvsem/semtest.c
161
switch ((child_pid = fork())) {
test/testcases/sysv/sysvshm/shmtest.c
155
switch ((child_pid = fork())) {
test/unix/passdesc/passdesc.c
147
if (fork() == 0) {
test/unix/unconn_dgram/unconn_dgram.c
56
pid = fork();
tools/regression/lib/libm/test-fenv.c
352
switch(fork()) {
tools/regression/lib/libm/test-fenv.c
421
switch(fork()) {
tools/regression/p1003_1b/fifo.c
128
if ((child = fork()) == 0)
tools/regression/p1003_1b/sched.c
246
if ((me = fork()) != 0)
tools/regression/p1003_1b/yield.c
118
if ((youngest = fork()) == 0) {
tools/regression/priv/test.c
118
int child = fork();
tools/regression/priv/test.c
52
int child = fork();
tools/regression/priv/test.c
87
int child = fork();
tools/tools/net80211/wesside/wesside/wesside.c
2144
crack_pid = fork();
tools/tools/netrate/accept_connect/accept_server/accept_server.c
105
pid = fork();
tools/tools/netrate/accept_connect/connect_client/connect_client.c
88
pid = fork();
tools/tools/netrate/accept_connect/kq_accept_server/kq_accept_server.c
123
pid = fork();
tools/tools/netrate/accept_connect/kq_connect_client/kq_connect_client.c
135
pid = fork();
tools/tools/netrate/udpecho/udpecho.c
96
pid = fork();
usr.bin/bc/bc.y
1138
dc = fork();
usr.bin/calendar/calendar.c
340
kid = fork();
usr.bin/calendar/io.c
665
switch (fork()) {
usr.bin/ctags/ctags.c
196
if ((pid = fork()) == -1)
usr.bin/dfregress/userland.c
106
if ((pid = fork()) == -1) {
usr.bin/dsynth/build.c
2434
pid = fork();
usr.bin/evtranalyze/plotter.c
262
switch ((pid = fork())) {
usr.bin/find/function.c
583
switch (pid = fork()) {
usr.bin/ldd/ldd.c
175
switch (fork()) {
usr.bin/leave/leave.c
141
if ((pid = fork())) {
usr.bin/lockf/lockf.c
129
if ((child = fork()) == -1)
usr.bin/login/login.c
528
pid = fork();
usr.bin/m4/gnum4.c
619
switch(cpid = fork()) {
usr.bin/mail/cmd2.c
349
switch (pid = fork()) {
usr.bin/mail/popen.c
223
if ((pid = fork()) < 0) {
usr.bin/mail/send.c
384
pid = fork();
usr.bin/newkey/update.c
160
switch (pid = fork()) {
usr.bin/rpcgen/rpc_main.c
299
switch (childpid = fork()) {
usr.bin/script/script.c
189
child = fork();
usr.bin/sdiff/edit.c
56
if ((pid = fork()) == -1)
usr.bin/sdiff/sdiff.c
382
if ((pid = fork()) < 0)
usr.bin/su/su.c
432
child_pid = fork();
usr.bin/time/time.c
115
switch (pid = fork()) {
usr.bin/timeout/timeout.c
346
pid = fork();
usr.bin/tip/cmds.c
319
if ((cpid = fork()) < 0) {
usr.bin/tip/cmds.c
594
if ((cpid = fork()) < 0)
usr.bin/tip/cmds.c
638
if ((cpid = fork()) < 0)
usr.bin/tip/cmds.c
700
if ((shpid = fork())) {
usr.bin/tip/tip.c
222
if ((pid = fork()))
usr.bin/truss/setup.c
73
pid = fork();
usr.bin/undo/undo.c
690
if ((pid = fork()) < 0) {
usr.bin/vknet/vknet.c
453
if ((pid = fork()) > 0)
usr.bin/wall/ttymsg.c
125
cpid = fork();
usr.bin/xinstall/xinstall.c
1060
switch (fork()) {
usr.sbin/authpf/authpf.c
679
switch (pid = fork()) {
usr.sbin/autofs/automountd.c
540
pid = fork();
usr.sbin/autofs/popen.c
112
switch (pid = fork()) {
usr.sbin/cron/cron/do_command.c
337
if (*input_data && fork() == 0) {
usr.sbin/cron/cron/do_command.c
49
switch (fork()) {
usr.sbin/cron/crontab/crontab.c
394
switch (pid = fork()) {
usr.sbin/cron/lib/compat.c
45
return (fork());
usr.sbin/daemon/daemon.c
281
pid = fork();
usr.sbin/edquota/edquota.c
433
if ((pid = fork()) < 0) {
usr.sbin/hotplugd/hotplugd.c
194
if ((pid = fork()) == -1) {
usr.sbin/inetd/inetd.c
654
pid = fork();
usr.sbin/installer/test/test_storage/test_storage.c
185
r = fork();
usr.sbin/lpr/lpd/lpd.c
238
pid = fork();
usr.sbin/lpr/lpd/lpd.c
381
if (fork() == 0) {
usr.sbin/lpr/lpd/lpd.c
589
if ((pid = fork()) < 0) {
usr.sbin/lpr/lpd/printjob.c
1511
forkpid = fork();
usr.sbin/newsyslog/newsyslog.c
2096
pidzip = fork();
usr.sbin/newsyslog/newsyslog.c
2108
pidzip = fork();
usr.sbin/pflogd/privsep.c
84
child_pid = fork();
usr.sbin/ppp/bundle.c
1734
switch ((pid = fork())) {
usr.sbin/ppp/bundle.c
1748
switch ((pid = fork())) {
usr.sbin/ppp/chap.c
281
switch ((chap->child.pid = fork())) {
usr.sbin/ppp/chat.c
730
if ((pid = fork()) == 0) {
usr.sbin/ppp/command.c
625
if ((shpid = fork()) == 0) {
usr.sbin/ppp/exec.c
132
} else switch ((pid = fork())) {
usr.sbin/ppp/main.c
443
bgpid = fork();
usr.sbin/pw/pw.c
243
else if ((pid = fork()) == -1)
usr.sbin/pw/pwupd.c
92
if ((pid = fork()) == -1) /* Error (errno set) */
usr.sbin/resident/resident.c
239
switch (fork()) {
usr.sbin/route6d/route6d.c
370
if (fork())
usr.sbin/rpc.lockd/lockd_lock.c
445
switch (fl->locker = fork()) {
usr.sbin/rpc.statd/file.c
286
pid = fork();
usr.sbin/rpc.statd/procs.c
325
pid = fork();
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
648
switch ((pid = fork())) {
usr.sbin/rpc.yppasswdd/yppasswdd_server.c
868
switch ((pid = fork())) {
usr.sbin/rpc.ypupdated/update.c
156
switch (pid = fork()) {
usr.sbin/rpc.ypupdated/yp_dbupdate.c
55
switch ((pid = fork())) {
usr.sbin/rpc.ypxfrd/ypxfrd_main.c
234
pid = fork();
usr.sbin/rpc.ypxfrd/ypxfrd_server.c
125
if (children < MAX_CHILDREN && fork()) {
usr.sbin/rpcbind/security.c
191
if (fork() == 0) {
usr.sbin/sensorsd/sensorsd.c
393
switch (fork()) {
usr.sbin/syslogd/syslogd.c
2113
switch (childpid = fork()) {
usr.sbin/syslogd/syslogd.c
2484
switch ((pid = fork())) {
usr.sbin/uefisign/uefisign.c
399
pid = fork();
usr.sbin/ypbind/ypbind.c
662
switch ((ypdb->dom_broadcast_pid = fork())) {
usr.sbin/ypserv/yp_server.c
64
return(fork());