Home
last modified time | relevance | path

Searched refs:pid (Results 251 – 275 of 575) sorted by relevance

1...<<11121314151617181920>>...23

/dragonfly/usr.bin/pkill/
H A Dpkill.c141 pid_t pid; in main() local
503 pid = mypid; in main()
504 while (pid) { in main()
508 if (kp->kp_pid == pid) { in main()
510 pid = kp->kp_ppid; in main()
515 if (pid == mypid) in main()
516 pid = getppid(); in main()
/dragonfly/lib/libc/gen/
H A Dwordexp.c133 pid_t pid; /* Process ID of child */ in we_askshell() local
158 if ((pid = fork()) < 0) { in we_askshell()
167 } else if (pid == 0) { in we_askshell()
261 wpid = _waitpid(pid, &status, 0); in we_askshell()
/dragonfly/lib/libssh/openbsd-compat/
H A Dbsd-misc.c343 getpgid(pid_t pid) in getpgid() argument
346 return getpgrp(pid); in getpgid()
348 if (pid == 0) in getpgid()
408 getsid(pid_t pid) in getsid() argument
/dragonfly/usr.bin/ctags/
H A Dctags.c194 pid_t pid; in main() local
196 if ((pid = fork()) == -1) in main()
198 else if (pid == 0) { in main()
/dragonfly/sys/vfs/fuse/
H A Dfuse_util.c49 uint32_t uid, uint32_t gid, uint32_t pid) in fuse_fill_in_header() argument
57 ihd->pid = pid; in fuse_fill_in_header()
/dragonfly/tools/tools/net80211/scripts/
H A Dsetup.updown.wpa50 pid=$!
54 kill $pid
/dragonfly/crypto/openssh/
H A Dsshd.c344 pid_t pid; in main_sigchld_handler() local
348 (pid == -1 && errno == EINTR)) in main_sigchld_handler()
476 pid_t pid; in privsep_preauth() local
486 pid = fork(); in privsep_preauth()
487 if (pid == -1) { in privsep_preauth()
489 } else if (pid != 0) { in privsep_preauth()
492 pmonitor->m_pid = pid; in privsep_preauth()
1138 pid_t pid; local
1321 pid = getpid();
1337 if ((pid = fork()) == 0) {
[all …]
/dragonfly/usr.bin/mail/
H A Dfio.c324 int pid, l; in expand() local
371 pid = start_command(sh, 0, -1, pivec[1], "-c", cmdbuf, NULL); in expand()
372 if (pid < 0) { in expand()
380 if (wait_child(pid) < 0 && WIFSIGNALED(wait_status) && in expand()
/dragonfly/sys/dev/sound/
H A Dclone.c75 pid_t pid; member
427 ce->pid = -1; in snd_clone_gc()
519 ce->pid = -1; in snd_clone_release()
688 if (ce->pid == curpid && in snd_clone_alloc()
765 ce->pid = curpid; in snd_clone_alloc()
789 ce->pid = curpid; in snd_clone_alloc()
/dragonfly/usr.sbin/ppp/
H A Did.c254 ID0kill(pid_t pid, int sig) in ID0kill() argument
259 result = kill(pid, sig); in ID0kill()
260 log_Printf(LogID0, "%d = kill(%ld, %d)\n", result, (long)pid, sig); in ID0kill()
H A Dchap.c261 pid_t pid; in chap_StartChild() local
280 pid = getpid(); in chap_StartChild()
281 switch ((chap->child.pid = fork())) { in chap_StartChild()
288 chap->child.pid = 0; in chap_StartChild()
320 chap->auth.physical->dl->bundle, 0, pid); in chap_StartChild()
344 if (chap->child.pid) { in chap_Cleanup()
350 kill(chap->child.pid, SIGTERM); in chap_Cleanup()
351 chap->child.pid = 0; in chap_Cleanup()
671 chap->child.pid = 0; in chap_Init()
/dragonfly/contrib/gdb-7/gdb/python/
H A Dpy-infthread.c137 int pid; in thpy_get_ptid() local
148 pid = ptid_get_pid (thread_obj->thread->ptid); in thpy_get_ptid()
152 PyTuple_SET_ITEM (ret, 0, PyInt_FromLong (pid)); in thpy_get_ptid()
/dragonfly/share/misc/
H A Dgdbinit60 printf "\ncpu pid thread flags comm wchan wmesg\n"
66 set $pid = $td->td_proc->p_pid
68 set $pid = -1
72 $cpu, $pid, $td, $td->td_flags, $td->td_comm, $td->td_wchan, \
76 $cpu, $pid, $td, $td->td_flags, $td->td_comm, $td->td_wchan
/dragonfly/tools/regression/bin/sh/expansion/
H A Dcmdsubst6.011 eval "pid=\$(dummy=$code echo \$(\$SH -c echo\ \\\$PPID))"
13 if [ "$pid" = "$$" ]; then
/dragonfly/contrib/openresolv/
H A Dnamed.in50 : ${named_pid:=/var/run/$named_service.pid}
51 [ -s "$named_pid" ] || named_pid=/var/run/$named_service/$named_service.pid
/dragonfly/lib/libpam/modules/pam_exec/
H A Dpam_exec.c116 pid_t pid; in _pam_exec() local
220 if ((pid = vfork()) == 0) { in _pam_exec()
226 if (pid == -1) { in _pam_exec()
230 while (waitpid(pid, &status, 0) == -1) { in _pam_exec()
/dragonfly/usr.sbin/cron/cron/
H A Ddo_command.c542 PID_T pid; in child_process() local
546 pid = wait(&waiter); in child_process()
547 if (pid < OK) { in child_process()
553 getpid(), pid, WEXITSTATUS(waiter))) in child_process()
/dragonfly/sys/dev/drm/
H A Dlinux_sched.c67 task->pid = -1; in linux_task_alloc()
71 task->pid = td->td_proc->p_pid; in linux_task_alloc()
/dragonfly/sbin/hammer2/
H A Dcmd_service.c1008 pid_t pid; in hammer2_demon() local
1024 if ((pid = fork()) < 0) { in hammer2_demon()
1028 if (pid > 0) { in hammer2_demon()
1029 while (waitpid(pid, NULL, 0) != pid) in hammer2_demon()
1061 if ((pid = fork()) < 0) { in hammer2_demon()
1064 if (pid > 0) in hammer2_demon()
/dragonfly/usr.sbin/sdpd/
H A Dserver.c488 switch (pdu->pid) { in server_process_request()
521 switch (pdu->pid) { in server_process_request()
555 pdu->pid, ntohs(pdu->tid), error); in server_process_request()
561 pdu->pid, ntohs(pdu->tid), pdu->len, len, error); in server_process_request()
568 pdu->pid, ntohs(pdu->tid), error); in server_process_request()
596 rsp.pdu.pid = SDP_PDU_ERROR_RESPONSE; in server_send_error_response()
/dragonfly/contrib/wpa_supplicant/src/utils/
H A Dos_unix.c355 header.pid = 0; in os_program_init()
793 pid_t pid; in os_exec() local
796 pid = fork(); in os_exec()
797 if (pid < 0) { in os_exec()
802 if (pid == 0) { in os_exec()
838 waitpid(pid, &pid_status, 0); in os_exec()
/dragonfly/contrib/gdb-7/gdb/
H A Dtarget.c3665 int pid = ptid_get_pid (ptid); in generic_mourn_inferior() local
3666 exit_inferior (pid); in generic_mourn_inferior()
3864 debug_to_post_attach (int pid) in debug_to_post_attach() argument
4807 pid, retval); in debug_to_insert_fork_catchpoint()
4820 pid, retval); in debug_to_remove_fork_catchpoint()
4833 pid, retval); in debug_to_insert_vfork_catchpoint()
4846 pid, retval); in debug_to_remove_vfork_catchpoint()
4859 pid, retval); in debug_to_insert_exec_catchpoint()
4872 pid, retval); in debug_to_remove_exec_catchpoint()
4935 debug_to_pid_to_exec_file (int pid) in debug_to_pid_to_exec_file() argument
[all …]
/dragonfly/usr.bin/dsynth/
H A Drepo.c129 pid_t pid; in childRebuildRepo() local
160 fp = dexec_open(NULL, cav, cac, &pid, NULL, 1, 0); in childRebuildRepo()
163 if (dexec_close(fp, pid) == 0) in childRebuildRepo()
174 fp = dexec_open(NULL, cav, cac, &pid, NULL, 1, 0); in childRebuildRepo()
186 dexec_close(fp, pid); in childRebuildRepo()
/dragonfly/sys/sys/
H A Dsysproto.h51 int pid; char pid_[PAD_(int)]; member
118 pid_t pid; char pid_[PAD_(pid_t)]; member
171 int pid; char pid_[PAD_(int)]; member
196 int pid; char pid_[PAD_(int)]; member
291 int pid; char pid_[PAD_(int)]; member
485 pid_t pid; char pid_[PAD_(pid_t)]; member
579 pid_t pid; char pid_[PAD_(pid_t)]; member
748 pid_t pid; char pid_[PAD_(pid_t)]; member
801 pid_t pid; char pid_[PAD_(pid_t)]; member
805 pid_t pid; char pid_[PAD_(pid_t)]; member
[all …]
/dragonfly/usr.sbin/authpf/
H A Dauthpf.c591 pid_t pid; in remove_stale_rulesets() local
601 pid = strtoul(t, &s, 10); in remove_stale_rulesets()
605 if (kill(pid, 0) && errno != EPERM) { in remove_stale_rulesets()
640 pid_t pid; in change_filter() local
679 switch (pid = fork()) { in change_filter()
695 waitpid(pid, &s, 0); in change_filter()

1...<<11121314151617181920>>...23