/illumos-gate/usr/src/lib/libwrap/ |
H A D | shell_cmd.c | 50 int child_pid; local 58 switch (child_pid = fork()) { 66 while ((wait_pid = wait((int *) 0)) != -1 && wait_pid != child_pid)
|
/illumos-gate/usr/src/lib/libfsmgt/common/ |
H A D | cmd.c | 81 pid_t child_pid; local 94 if ((child_pid = fork()) == -1) { 98 if (child_pid == 0) { 180 pid_t child_pid; local 192 if ((child_pid = fork()) == -1) { 197 if (child_pid == 0) { 256 while ((wait(&status) != child_pid)) {
|
/illumos-gate/usr/src/test/os-tests/tests/spoof-ras/ |
H A D | spoof-ras.c | 401 pid_t child_pid = fork(); local 402 if (child_pid == (pid_t)-1) { 404 } else if (child_pid == (pid_t)0) { 411 return (child_pid); 439 pid_t child_pid; local 442 child_pid = fork(); 443 if (child_pid == (pid_t)-1) { 445 } else if (child_pid == (pid_t)0) { 450 while (waitpid(child_pid, &childstat, 0) == -1) {
|
/illumos-gate/usr/src/cmd/hal/hald/ |
H A D | hald.c | 300 parent_wait_for_child (int child_fd, pid_t child_pid) argument 346 kill (child_pid, SIGTERM); 475 int child_pid; local 495 child_pid = fork (); 496 switch (child_pid) { 519 exit (parent_wait_for_child (startup_daemonize_pipe[0], child_pid));
|
/illumos-gate/usr/src/lib/libinstzones/common/ |
H A D | zones_exec.c | 689 pid_t child_pid; local 798 child_pid = fork1(); 800 if (child_pid < 0) { 819 if (child_pid == 0) { 868 _z_global_data._z_ChildProcessId = child_pid; 965 result_pid = waitpid(child_pid, &status, 0L);
|
H A D | zones.c | 2041 pid_t child_pid; local 2077 child_pid = fork1(); 2079 if (child_pid < 0) { 2098 if (child_pid == 0) { 2180 _z_global_data._z_ChildProcessId = child_pid; 2223 result_pid = waitpid(child_pid, &status, 0L);
|
/illumos-gate/usr/src/cmd/zlogin/ |
H A D | zlogin.c | 101 static volatile pid_t child_pid = -1; variable 536 if ((pid = waitpid(child_pid, &status, WNOHANG|WNOWAIT)) != -1) { 537 if (pid == child_pid && 558 if (child_pid != -1) { 559 (void) sigsend(P_PGID, child_pid, s); 1478 if ((child_pid = fork()) == -1) { 1481 } else if (child_pid == 0) { 1491 retval = waitpid(child_pid, &pstatus, 0); 1492 } while (retval != child_pid); 1604 if ((child_pid [all...] |
/illumos-gate/usr/src/cmd/cmd-inet/usr.bin/ |
H A D | rsh.c | 159 static pid_t child_pid = -1; variable 170 if (child_pid != -1) 171 (void) kill(child_pid, SIGKILL); 685 child_pid = fork(); 686 if (child_pid < 0) { 696 if (child_pid == 0) { 783 (void) kill(child_pid, SIGKILL);
|
/illumos-gate/usr/src/cmd/allocate/ |
H A D | allocate.c | 632 pid_t child_pid; local 637 switch (child_pid = fork()) { 651 wait_pid = waitpid(child_pid, &child_status, 0); 654 if ((wait_pid < 0) || (wait_pid != child_pid))
|
/illumos-gate/usr/src/cmd/nscd/ |
H A D | nscd_selfcred.c | 88 pid_t child_pid; member in struct:_child 185 ch->child_pid = 0; 385 child[i]->child_pid, child[i]->child_door); 390 (void) kill(child[i]->child_pid, SIGTERM); 485 cpid = ch->child_pid; 677 ch->child_pid = ucred_getpid(uc);
|
/illumos-gate/usr/src/cmd/krb5/slave/ |
H A D | kpropd.c | 442 int child_pid; local 475 child_pid = 0; 477 child_pid = fork(); 478 switch (child_pid) { 1787 int child_pid; local 1826 switch(child_pid = fork()) { 1853 printf(gettext("Child PID is %d\n"), child_pid);
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.sbin/ |
H A D | ndp.c | 224 pid_t child_pid; local 227 child_pid = fork(); 228 if (child_pid == (pid_t)-1) { 230 } else if (child_pid == (pid_t)0) { 235 while (waitpid(child_pid, &childstat, 0) == -1) {
|
/illumos-gate/usr/src/cmd/fs.d/autofs/ |
H A D | autod_mount.c | 397 int child_pid; local 409 switch ((child_pid = fork1())) { 447 (void) waitpid(child_pid, &stat_loc, WUNTRACED);
|
H A D | ns_files.c | 568 int child_pid; local 590 switch ((child_pid = fork1())) { 618 while (waitpid(child_pid, &status, 0) < 0) {
|
/illumos-gate/usr/src/cmd/csh/ |
H A D | sh.proc.c | 1186 int child_pid; local 1219 child_pid = getpid(); 1221 child_pid = pid; 1222 pgrp = pcurrjob ? pcurrjob->p_jobid : child_pid;
|
/illumos-gate/usr/src/cmd/cmd-inet/usr.lib/inetd/ |
H A D | inetd.c | 2997 pid_t child_pid; local 3086 child_pid = fork(); 3090 switch (child_pid) { 3113 if (register_method(instance, child_pid, cid, method, 3129 add_method_ids(instance, child_pid, cid, method); 3137 cfg->basic->svc_name, child_pid,
|
/illumos-gate/usr/src/lib/smbsrv/libmlsvc/common/ |
H A D | smb_share.c | 1023 pid_t child_pid; local 1062 if ((child_pid = fork()) == -1) { 1068 if (child_pid == 0) { 1113 while (waitpid(child_pid, &child_status, 0) < 0) {
|
/illumos-gate/usr/src/cmd/zoneadmd/ |
H A D | vplat.c | 789 pid_t child_pid; local 796 child_pid = fork(); 798 if (child_pid == -1) { 801 } else if (child_pid == 0) { 817 (void) waitpid(child_pid, &child_status, 0);
|
/illumos-gate/usr/src/lib/libzonecfg/common/ |
H A D | libzonecfg.c | 7527 pid_t child_pid; local 7559 if ((child_pid = fork()) == -1) { 7564 if (child_pid == 0) { 7593 retval = waitpid(child_pid, &pstatus, 0); 7594 } while (retval != child_pid);
|
/illumos-gate/usr/src/cmd/make/bin/ |
H A D | doname.cc | 1763 int child_pid = 0; local
|