Searched refs:ppid (Results 1 - 25 of 30) sorted by relevance

12

/openbsd-current/gnu/usr.bin/perl/dist/Time-HiRes/t/
H A DWatchdog.pm17 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 Dgetpid.t29 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 Dt_kill.c136 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 Dt_getpid.c62 pid_t ppid, fpid, cpid, tpid, wpid; local
75 ppid = getppid();
77 if (tpid != ppid)
80 if (cpid == ppid)
H A Dt_getsid.c83 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 Dos2_process_text.t17 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 Dsigsuspend.c34 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 Dsigio_common.c62 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 Dutil.c104 test_fork(pid_t *ppid, int *psfd) argument
113 *ppid = pid;
/openbsd-current/sbin/ldattach/
H A Dldattach.c117 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 Damd.c190 pid_t ppid = 0; local
314 ppid = daemon_mode();
323 error = mount_automounter(ppid);
324 if (error && ppid)
325 kill(ppid, SIGALRM);
H A Dnfs_start.c338 mount_automounter(pid_t ppid) argument
428 if (ppid)
429 kill(ppid, SIGQUIT);
/openbsd-current/sys/dev/fdt/
H A Dqcspmi.c119 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 Dsasyncd.c57 sasyncd_run(pid_t ppid) argument
124 if (getppid() != ppid) {
/openbsd-current/gnu/usr.bin/perl/t/io/
H A Deintr_print.t45 my $ppid = $$;
/openbsd-current/regress/usr.sbin/relayd/
H A DProc.pm73 $self->{ppid} = $$;
133 return 0 unless $self->{ppid} == $$;
/openbsd-current/regress/usr.sbin/syslogd/
H A DProc.pm79 $self->{ppid} = $$;
155 return 0 unless $self->{ppid} == $$;
H A DSyslogd.pm304 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 Dwrappers.t237 my $ppid = <STDIN>;
238 chomp $ppid;
239 is($ppid, $$, 'getppid');
/openbsd-current/gnu/llvm/compiler-rt/lib/sanitizer_common/
H A Dsanitizer_stoptheworld_netbsd_libcdep.cpp340 pid_t ppid = internal_getppid(); local
344 internal_iserror(internal_ptrace(PT_GETREGS, ppid, &regs, tid), &pterrno);
348 ppid, tid, pterrno);
/openbsd-current/gnu/usr.bin/perl/os2/
H A Dos2_pipe.t156 my ($name, $ppid) = (shift, shift);
160 my $got = OS2::pipe $name, 'call', "Is your pid $ppid?\n";
/openbsd-current/bin/ksh/
H A Djobs.c83 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 Dmain.c153 pid_t ppid; local
307 ppid = getppid();
308 setint(global("PPID"), (int64_t) ppid);
/openbsd-current/usr.bin/tmux/
H A Dclient.c240 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 DProcess.xs261 (HWND hwnd, PPID ppid, PTID ptid), (hwnd, ppid, ptid))
1331 int ppid;
1338 ppid = psi->procdata->ppid;
1340 return ppid;

Completed in 406 milliseconds

12