Home
last modified time | relevance | path

Searched refs:hr_workerpid (Results 1 – 5 of 5) sorted by relevance

/freebsd-12.1/sbin/hastd/
H A Dcontrol.c72 res->hr_workerpid = 0; in child_cleanup()
119 if (res->hr_workerpid != 0) { in control_set_role_common()
120 if (kill(res->hr_workerpid, SIGTERM) == -1) { in control_set_role_common()
123 (unsigned int)res->hr_workerpid); in control_set_role_common()
124 } else if (waitpid(res->hr_workerpid, NULL, 0) != in control_set_role_common()
125 res->hr_workerpid) { in control_set_role_common()
128 (unsigned int)res->hr_workerpid); in control_set_role_common()
131 (unsigned int)res->hr_workerpid); in control_set_role_common()
286 nv_add_int32(nvout, res->hr_workerpid, "workerpid%u", no); in control_status()
290 PJDLOG_ASSERT(res->hr_workerpid != 0); in control_status()
[all …]
H A Dhastd.c335 if (pid == res->hr_workerpid) in child_exit()
692 if (cres->hr_workerpid != 0) in hastd_reload()
732 if (res->hr_workerpid == 0) in terminate_workers()
736 if (kill(res->hr_workerpid, SIGTERM) == 0) in terminate_workers()
880 if (res->hr_workerpid != 0) { in listen_accept()
884 (unsigned int)res->hr_workerpid); in listen_accept()
889 (unsigned int)res->hr_workerpid); in listen_accept()
896 else if ((pid = waitpid(res->hr_workerpid, in listen_accept()
897 &status, 0)) != res->hr_workerpid) { in listen_accept()
901 (unsigned int)res->hr_workerpid); in listen_accept()
[all …]
H A Dhast.h223 pid_t hr_workerpid; member
H A Dsecondary.c454 res->hr_workerpid = pid; in hastd_secondary()
H A Dprimary.c1016 res->hr_workerpid = pid; in hastd_primary()