Home
last modified time | relevance | path

Searched refs:pid1 (Results 1 – 9 of 9) sorted by relevance

/NextBSD/bin/pkill/tests/
HDpgrep-j_test.sh43 pid1="$(pgrep -f -x -j "$jid" "$sleep $sleep_amount" | sort)"
46 if [ "$pid1" = "$pid2" ]; then
49 echo "not ok 1 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'"
64 pid1="$(pgrep -f -x -j any "$sleep $sleep_amount" | sort)"
67 if [ "$pid1" = "$pid2" ]; then
70 echo "not ok 2 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'"
86 echo "not ok 3 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'"
104 pid1="$(pgrep -f -x -j "$jname" "$sleep $sleep_amount" | sort)"
107 if [ "$pid1" = "$pid2" ]; then
110 echo "not ok 4 - $name # pgrep output: '$(echo $pid1)', pidfile output: '$(echo $pid2)'"
/NextBSD/tools/test/ptrace/
HDscescx.c313 pid_t pid, pid1; in main() local
346 if ((pid1 = use_vfork ? vfork() : fork()) < 0) { in main()
349 } else if (pid1 == 0) { in main()
376 while ((pid1 = trace(pid)) >= 0) { in main()
377 if (pid1 != 0) { in main()
378 printf(TRACE "attached to pid %d\n", pid1); in main()
380 kill(pid1, SIGCONT); in main()
382 if (waitpid(pid1, &status, 0) == -1) { in main()
387 pid1, decode_wait_status(status)); in main()
390 if (ptrace(PT_LWPINFO, pid1, (caddr_t)&lwpinfo, in main()
[all …]
/NextBSD/tools/regression/security/proc_to_proc/
HDscenario.c269 pid_t pid1, pid2; in enact_scenario() local
277 pid1 = fork(); in enact_scenario()
278 switch (pid1) { in enact_scenario()
335 error = ptrace(PT_ATTACH, pid1, NULL, 0); in enact_scenario()
349 KTRFAC_SYSCALL, pid1); in enact_scenario()
357 error = kill(pid1, SIGHUP); in enact_scenario()
364 error = kill(pid1, SIGSEGV); in enact_scenario()
371 getpriority(PRIO_PROCESS, pid1); in enact_scenario()
378 error = setpriority(PRIO_PROCESS, pid1, in enact_scenario()
416 kill(pid1, SIGKILL); in enact_scenario()
/NextBSD/contrib/netbsd-tests/rump/rumpkern/h_client/
HDh_forkcli.c21 pid_t pid1, pid2; in simple() local
24 if ((pid1 = rump_sys_getpid()) < 2) in simple()
25 errx(1, "unexpected pid %d", pid1); in simple()
44 if (pid1 == pid2) in simple()
/NextBSD/contrib/ofed/management/opensm/scripts/
HDredhat-opensm.init.in177 local pid1=
187 [ -z "${p//[0-9]/}" -a -d "/proc/$p" ] && pid1="$pid1 $p"
193 pid=`echo "$pid1 $pid2" | sed -e 's/\ /\n/g' | sort -n | uniq | sed -e 's/\n/\ /g'`
/NextBSD/contrib/gcclibs/libiberty/testsuite/
HDtest-pexecute.c384 int pid1, pid2; in main() local
393 pid1 = pexecute ("./test-pexecute", subargv, "test-pexecute", "temp", in main()
395 if (pid1 < 0) in main()
414 if (pwait (pid1, &status, 0) < 0) in main()
/NextBSD/tests/sys/file/
HDflock_helper.c501 int pid1, pid2; in test6() local
515 pid1 = fork(); in test6()
516 if (pid1 < 0) in test6()
519 if (pid1 == 0) { in test6()
567 kill(pid1, SIGTERM); in test6()
568 safe_waitpid(pid1); in test6()
/NextBSD/cddl/usr.sbin/dtrace/tests/common/builtinvar/
HDMakefile33 tst.pid1.d \
/NextBSD/contrib/libreadline/
HDaclocal.m41236 int pid1, pid2, fds[2];
1240 switch (pid1 = fork()) {
1247 setpgid(pid1, pid1);
1258 setpgid(0, pid1);
1259 ok = getpgID() == pid1;
1263 setpgid(pid2, pid1);