/openbsd-current/gnu/usr.bin/perl/dist/Time-HiRes/t/ |
H A D | Watchdog.pm | 17 my $ppid = getppid(); 21 if (kill(0, $ppid)) { # Check if parent still exists 23 print("Terminating main process $ppid...\n"); 24 kill('KILL', $ppid);
|
/openbsd-current/gnu/usr.bin/perl/t/op/ |
H A D | getpid.t | 29 my ($pid, $ppid) = ($$, getppid()); 48 isnt($ppid, $ppid2, "getppid() in a thread is different from the parent on this non-POSIX system"); 51 is($ppid, $ppid2, 'getppid() in a thread is the same as in the parent');
|
/openbsd-current/regress/lib/libc/sys/ |
H A D | t_kill.c | 136 pid_t cpid, ppid; local 158 ppid = fork(); 160 if (ppid < 0) 163 if (ppid == 0) { 201 (void)waitpid(ppid, &sta, 0); 219 pid_t cpid, ppid; local 222 ppid = fork(); 223 ATF_REQUIRE(ppid >= 0); 225 if (ppid == 0) { 251 (void)waitpid(ppid, 266 pid_t cpid, ppid; local [all...] |
H A D | t_getpid.c | 62 pid_t ppid, fpid, cpid, tpid, wpid; local 75 ppid = getppid(); 77 if (tpid != ppid) 80 if (cpid == ppid)
|
H A D | t_getsid.c | 83 pid_t csid, pid, ppid, sid; local 95 ppid = getppid(); 100 if (getsid(ppid) != csid)
|
/openbsd-current/gnu/usr.bin/perl/os2/OS2/OS2-Process/t/ |
H A D | os2_process_text.t | 17 print for $$, ppid, sidOf; 41 is( $kppid, ($extra_fork ? $PID : $$), 'kid knows its ppid'); 47 is(ppidOf($kpid), $kppid, 'we know ppid of kid'); 48 is(ppidOf($PID), $$, 'we know ppid of inter-kid');
|
/openbsd-current/regress/sys/kern/signal/sigsuspend/ |
H A D | sigsuspend.c | 34 pid_t pid, ppid; local 37 ppid = getpid(); 64 kill(ppid, SIGUSR1); /* Tell the parent we're ready. */
|
/openbsd-current/regress/sys/kern/signal/sigio/ |
H A D | sigio_common.c | 62 pid_t pid, ppid; local 67 ppid = getpid(); 73 assert(fcntl(fd, F_SETOWN, ppid) == -1); 76 assert(fcntl(fd, F_SETOWN, -ppid) == -1); 78 arg = ppid; 82 arg = -ppid; 99 pid_t pid, ppid; local 107 ppid = getpid(); 127 assert(fcntl(fds[0], F_SETOWN, ppid) == 0);
|
H A D | util.c | 104 test_fork(pid_t *ppid, int *psfd) argument 113 *ppid = pid;
|
/openbsd-current/sbin/ldattach/ |
H A D | ldattach.c | 117 pid_t ppid; local 125 if ((ppid = getppid()) == 1) 157 if (ppid != 1) 174 if (ppid != 1) 182 if (ppid != -1) 189 if (ppid != 1 && argc != 2) 224 if (ppid != 1) 288 if (ppid != 1) 328 if (ppid == 1)
|
/openbsd-current/usr.sbin/amd/amd/ |
H A D | amd.c | 190 pid_t ppid = 0; local 314 ppid = daemon_mode(); 323 error = mount_automounter(ppid); 324 if (error && ppid) 325 kill(ppid, SIGALRM);
|
H A D | nfs_start.c | 338 mount_automounter(pid_t ppid) argument 428 if (ppid) 429 kill(ppid, SIGQUIT);
|
/openbsd-current/sys/dev/fdt/ |
H A D | qcspmi.c | 119 uint16_t ppid; member in struct:qcspmi_apid 192 uint32_t val, ppid, irq_own; local 243 ppid = (val >> SPMI_ARB_APID_MAP_PPID_SHIFT) & 252 last_apid = &sc->sc_apid[sc->sc_ppid_to_apid[ppid] & 254 if (!(sc->sc_ppid_to_apid[ppid] & SPMI_PPID_TO_APID_VALID) || 256 sc->sc_ppid_to_apid[ppid] = SPMI_PPID_TO_APID_VALID | i; 257 } else if ((sc->sc_ppid_to_apid[ppid] & 316 uint16_t apid, ppid; local 327 ppid = (sid << 8) | (addr >> 8); 328 if (!(sc->sc_ppid_to_apid[ppid] 376 uint16_t apid, ppid; local 437 uint16_t ppid; local [all...] |
/openbsd-current/usr.sbin/sasyncd/ |
H A D | sasyncd.c | 57 sasyncd_run(pid_t ppid) argument 124 if (getppid() != ppid) {
|
/openbsd-current/gnu/usr.bin/perl/t/io/ |
H A D | eintr_print.t | 45 my $ppid = $$;
|
/openbsd-current/regress/usr.sbin/relayd/ |
H A D | Proc.pm | 73 $self->{ppid} = $$; 133 return 0 unless $self->{ppid} == $$;
|
/openbsd-current/regress/usr.sbin/syslogd/ |
H A D | Proc.pm | 79 $self->{ppid} = $$; 155 return 0 unless $self->{ppid} == $$;
|
H A D | Syslogd.pm | 304 my $ppid = shift // $self->{pid}; 307 my @cmd = ("ps", "-ww", "-p", $ppid, "-U", "_syslogd", 308 "-o", "pid,ppid,comm", ); 323 grep { $_->{PPID} == $ppid && $_->{COMMAND} eq "syslogd" } @pslist;
|
/openbsd-current/gnu/usr.bin/perl/ext/POSIX/t/ |
H A D | wrappers.t | 237 my $ppid = <STDIN>; 238 chomp $ppid; 239 is($ppid, $$, 'getppid');
|
/openbsd-current/gnu/llvm/compiler-rt/lib/sanitizer_common/ |
H A D | sanitizer_stoptheworld_netbsd_libcdep.cpp | 340 pid_t ppid = internal_getppid(); local 344 internal_iserror(internal_ptrace(PT_GETREGS, ppid, ®s, tid), &pterrno); 348 ppid, tid, pterrno);
|
/openbsd-current/gnu/usr.bin/perl/os2/ |
H A D | os2_pipe.t | 156 my ($name, $ppid) = (shift, shift); 160 my $got = OS2::pipe $name, 'call', "Is your pid $ppid?\n";
|
/openbsd-current/bin/ksh/ |
H A D | jobs.c | 83 pid_t ppid; /* pid of process that forked job */ member in struct:job 252 if (j->ppid == procpid && 431 j->ppid = procpid; 625 if (j->ppid == procpid && j->state == PRUNNING) 634 if (j->ppid != procpid) { 800 if (j->ppid == procpid && j->state == PSTOPPED) 803 j->ppid == procpid && j->state == PRUNNING) 1147 if (j->ppid == procpid && !(j->flags & JF_STARTED)) { 1585 if ((j->flags & JF_ZOMBIE) && j->ppid == procpid)
|
H A D | main.c | 153 pid_t ppid; local 307 ppid = getppid(); 308 setint(global("PPID"), (int64_t) ppid);
|
/openbsd-current/usr.bin/tmux/ |
H A D | client.c | 240 pid_t ppid; local 413 ppid = getppid(); 414 if (client_exittype == MSG_DETACHKILL && ppid > 1) 415 kill(ppid, SIGHUP);
|
/openbsd-current/gnu/usr.bin/perl/os2/OS2/OS2-Process/ |
H A D | Process.xs | 261 (HWND hwnd, PPID ppid, PTID ptid), (hwnd, ppid, ptid)) 1331 int ppid; 1338 ppid = psi->procdata->ppid; 1340 return ppid;
|