Searched refs:pid (Results 1 - 25 of 1140) sorted by path

1234567891011>>

/freebsd-head/bin/kill/
H A Dkill.c72 pid_t pid; local
146 pid = (pid_t)pidl;
147 if (!**argv || *ep || pid != pidl)
149 ret = kill(pid, numsig);
206 "usage: kill [-s signal_name] pid ...",
208 " kill -signal_name pid ...",
209 " kill -signal_number pid ...");
/freebsd-head/bin/ls/tests/
H A Dls_tests.sh264 sh -c "pid=${ATF_TMPDIR}/nc.pid; daemon -p \$pid nc -lU j; sleep 2; pkill -F \$pid"
/freebsd-head/bin/mv/
H A Dmv.c379 int pid, status; local
400 if (!(pid = vfork())) {
405 if (waitpid(pid, &status, 0) == -1) {
427 if (!(pid = vfork())) {
431 if (waitpid(pid, &status, 0) == -1) {
/freebsd-head/bin/pkill/
H A Dpkill.c147 pid_t pid; local
504 pid = mypid;
505 while (pid) {
509 if (kp->ki_pid == pid) {
511 pid = kp->ki_ppid;
516 if (pid == mypid)
517 pid = getppid();
650 warn("signalling pid %d", (int)kp->ki_pid);
839 err(STATUS_ERROR, "Cannot read from pid file `%s'", pidfile);
845 errx(STATUS_ERROR, "Invalid pid i
[all...]
/freebsd-head/bin/pkill/tests/
H A Dpgrep-F_test.sh16 pid=`pgrep -f -F $pidfile $sleep`
17 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-LF_test.sh15 pid=`pgrep -f -L -F $pidfile $sleep`
16 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-P_test.sh15 pid=`pgrep -f -P $ppid $sleep`
16 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-U_test.sh15 pid=`pgrep -f -U $ruid $sleep`
16 if [ "$pid" = "$chpid" ]; then
31 pid=`pgrep -f -U $ruid $sleep`
32 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-_g_test.sh15 pid=`pgrep -f -G $rgid $sleep`
16 if [ "$pid" = "$chpid" ]; then
31 pid=`pgrep -f -G $rgid $sleep`
32 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-_s_test.sh11 pid=`pgrep -Sx idle`
12 if [ "$pid" = "$exp_pid" ]; then
17 pid=`pgrep -x idle`
18 if [ "$pid" != "$exp_pid" ]; then
H A Dpgrep-g_test.sh15 pid=`pgrep -f -g $pgrp $sleep`
16 if [ "$pid" = "$chpid" ]; then
30 pid=`pgrep -f -g 0 $sleep`
31 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-i_test.sh17 pid=`pgrep -f -i $lsleep`
18 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-j_test.sh25 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount &
28 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount &
45 pid2=$(printf "%s\n%s" "$(cat ${PWD}/${base}_1_1.pid)" \
46 $(cat ${PWD}/${base}_1_2.pid) | sort)
52 [ -f ${PWD}/${base}_1_1.pid ] && kill $(cat ${PWD}/${base}_1_1.pid)
53 [ -f ${PWD}/${base}_1_2.pid ] && kill $(cat ${PWD}/${base}_1_2.pid)
59 command=daemon -p ${PWD}/${base}_2_1.pid $sleep $sleep_amount &
62 command=daemon -p ${PWD}/${base}_2_2.pid
[all...]
H A Dpgrep-l_test.sh13 pid=$!
14 if [ "$pid $sleep 5" = "`pgrep -f -l $sleep`" ]; then
19 kill $pid
H A Dpgrep-n_test.sh16 pid=`pgrep -f -n $sleep`
17 if [ "$pid" = "$newpid" ]; then
H A Dpgrep-o_test.sh16 pid=`pgrep -f -o $sleep`
17 if [ "$pid" = "$oldpid" ]; then
H A Dpgrep-q_test.sh14 pid=$!
37 kill $pid
H A Dpgrep-s_test.sh15 pid=`pgrep -f -s $sid $sleep`
16 if [ "$pid" = "$chpid" ]; then
30 pid=`pgrep -f -s 0 $sleep`
31 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-t_test.sh24 pid=`pgrep -f -t $tty $sleep`
25 if [ "$pid" = "$chpid" ]; then
30 pid=`pgrep -f -t $ttyshort $sleep`
31 if [ "$pid" = "$chpid" ]; then
H A Dpgrep-v_test.sh13 pid=$!
14 if [ -z "`pgrep -f -v $sleep | egrep '^'"$pid"'$'`" ]; then
19 if [ ! -z "`pgrep -f -v -x x | egrep '^'"$pid"'$'`" ]; then
24 kill $pid
H A Dpgrep-x_test.sh13 pid=$!
14 if [ ! -z "`pgrep -x sleep | egrep '^'"$pid"'$'`" ]; then
19 if [ -z "`pgrep -x slee | egrep '^'"$pid"'$'`" ]; then
25 if [ ! -z "`pgrep -x -f ''"$sleep"' 5' | egrep '^'"$pid"'$'`" ]; then
30 if [ -z "`pgrep -x -f ''"$sleep"' ' | egrep '^'"$pid"'$'`" ]; then
35 kill $pid
H A Dpkill-j_test.sh25 command=daemon -p ${PWD}/${base}_1_1.pid $sleep $sleep_amount &
28 command=daemon -p ${PWD}/${base}_1_2.pid $sleep $sleep_amount &
46 ! -f ${PWD}/${base}_1_1.pid &&
47 ! -f ${PWD}/${base}_1_2.pid ; then
52 [ -f ${PWD}/${base}_1_1.pid ] && kill $(cat ${PWD}/${base}_1_1.pid)
53 [ -f ${PWD}/${base}_1_2.pid ] && kill $(cat ${PWD}/${base}_1_2.pid)
59 command=daemon -p ${PWD}/${base}_2_1.pid $sleep $sleep_amount &
62 command=daemon -p ${PWD}/${base}_2_2.pid
[all...]
/freebsd-head/bin/pwait/
H A Dpwait.c55 fprintf(stderr, "usage: pwait [-t timeout] [-ov] pid ...\n");
69 long pid; local
144 pid = strtol(s, &end, 10);
145 if (pid < 0 || *end != '\0' || errno != 0) {
150 if (e[i].ident == (uintptr_t)pid) {
158 EV_SET(e + nleft, pid, EVFILT_PROC, EV_ADD, NOTE_EXIT, 0, NULL);
160 warn("%ld", pid);
/freebsd-head/bin/sh/
H A Djobs.c87 pid_t pid; /* process id */ member in struct:procstat
118 static pid_t backgndpid = -1; /* pid of last background process */
261 pgrp = jp->ps[0].pid;
304 kill(-jp->ps[0].pid, SIGCONT);
431 out1fmt("%d\n", (int)ps->pid);
449 fmtstr(s, 64, "%d ", (int)ps->pid);
626 out1fmt("%d", (int)jp->ps[i].pid);
644 pid_t pid; local
700 pid = (pid_t)number(name);
703 && jp->ps[jp->nprocs - 1].pid
894 pid_t pid; local
1008 pid_t pid; local
1140 pid_t pid; local
[all...]
/freebsd-head/cddl/contrib/opensolaris/cmd/dtrace/
H A Ddtrace.c134 "[-o output] [-p pid] [-s script] [-U name]\n\t"
838 int pid = Pstatus(P)->pr_pid; local
842 int pid = proc_getpid(P);
846 notice("pid %d: %s\n", pid, msg);
866 notice("pid %d terminated by %s\n", pid,
871 notice("pid %d terminated by %d\n", pid,
876 notice("pid
1317 pid_t pid; local
[all...]

Completed in 160 milliseconds

1234567891011>>