Home
last modified time | relevance | path

Searched refs:childproc (Results 1 – 2 of 2) sorted by relevance

/freebsd-12.1/tools/regression/priv/
H A Dpriv_sched_setpriority.c55 static pid_t childproc; variable
75 childproc = fork(); in priv_sched_setpriority_setup()
76 if (childproc < 0) { in priv_sched_setpriority_setup()
80 if (childproc == 0) { in priv_sched_setpriority_setup()
161 (void)kill(childproc, SIGKILL); in priv_sched_setpriority_cleanup()
163 pid = waitpid(childproc, NULL, 0); in priv_sched_setpriority_cleanup()
166 childproc); in priv_sched_setpriority_cleanup()
167 if (pid == childproc) in priv_sched_setpriority_cleanup()
171 childproc = -1; in priv_sched_setpriority_cleanup()
H A Dpriv_sched_rtprio.c59 static pid_t childproc; variable
84 childproc = fork(); in priv_sched_rtprio_setup()
85 if (childproc < 0) { in priv_sched_rtprio_setup()
89 if (childproc == 0) { in priv_sched_rtprio_setup()
250 error = rtprio(RTP_SET, childproc, &rtp); in priv_sched_rtprio_aproc_normal()
273 error = rtprio(RTP_SET, childproc, &rtp); in priv_sched_rtprio_aproc_idle()
317 (void)kill(childproc, SIGKILL); in priv_sched_rtprio_cleanup()
319 pid = waitpid(childproc, NULL, 0); in priv_sched_rtprio_cleanup()
322 childproc); in priv_sched_rtprio_cleanup()
323 if (pid == childproc) in priv_sched_rtprio_cleanup()
[all …]