Home
last modified time | relevance | path

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

/freebsd/tools/regression/priv/
H A Dpriv_sched_setpriority.c53 static pid_t childproc; variable
73 childproc = fork(); in priv_sched_setpriority_setup()
74 if (childproc < 0) { in priv_sched_setpriority_setup()
78 if (childproc == 0) { in priv_sched_setpriority_setup()
159 (void)kill(childproc, SIGKILL); in priv_sched_setpriority_cleanup()
161 pid = waitpid(childproc, NULL, 0); in priv_sched_setpriority_cleanup()
164 childproc); in priv_sched_setpriority_cleanup()
165 if (pid == childproc) in priv_sched_setpriority_cleanup()
169 childproc = -1; in priv_sched_setpriority_cleanup()
H A Dpriv_sched_rtprio.c57 static pid_t childproc; variable
82 childproc = fork(); in priv_sched_rtprio_setup()
83 if (childproc < 0) { in priv_sched_rtprio_setup()
87 if (childproc == 0) { in priv_sched_rtprio_setup()
248 error = rtprio(RTP_SET, childproc, &rtp); in priv_sched_rtprio_aproc_normal()
271 error = rtprio(RTP_SET, childproc, &rtp); in priv_sched_rtprio_aproc_idle()
294 error = rtprio(RTP_SET, childproc, &rtp); in priv_sched_rtprio_aproc_realtime()
315 (void)kill(childproc, SIGKILL); in priv_sched_rtprio_cleanup()
317 pid = waitpid(childproc, NULL, 0); in priv_sched_rtprio_cleanup()
320 childproc); in priv_sched_rtprio_cleanup()
[all …]