Home
last modified time | relevance | path

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

/freebsd-14.2/sbin/hastd/
H A Dcontrol.c69 res->hr_workerpid = 0; in child_cleanup()
116 if (res->hr_workerpid != 0) { in control_set_role_common()
117 if (kill(res->hr_workerpid, SIGTERM) == -1) { in control_set_role_common()
120 (unsigned int)res->hr_workerpid); in control_set_role_common()
121 } else if (waitpid(res->hr_workerpid, NULL, 0) != in control_set_role_common()
122 res->hr_workerpid) { in control_set_role_common()
125 (unsigned int)res->hr_workerpid); in control_set_role_common()
128 (unsigned int)res->hr_workerpid); in control_set_role_common()
283 nv_add_int32(nvout, res->hr_workerpid, "workerpid%u", no); in control_status()
287 PJDLOG_ASSERT(res->hr_workerpid != 0); in control_status()
[all …]
H A Dhastd.c333 if (pid == res->hr_workerpid) in child_exit()
690 if (cres->hr_workerpid != 0) in hastd_reload()
730 if (res->hr_workerpid == 0) in terminate_workers()
734 if (kill(res->hr_workerpid, SIGTERM) == 0) in terminate_workers()
878 if (res->hr_workerpid != 0) { in listen_accept()
882 (unsigned int)res->hr_workerpid); in listen_accept()
887 (unsigned int)res->hr_workerpid); in listen_accept()
894 else if ((pid = waitpid(res->hr_workerpid, in listen_accept()
895 &status, 0)) != res->hr_workerpid) { in listen_accept()
899 (unsigned int)res->hr_workerpid); in listen_accept()
[all …]
H A Dhast.h221 pid_t hr_workerpid; member
H A Dsecondary.c452 res->hr_workerpid = pid; in hastd_secondary()
H A Dprimary.c1014 res->hr_workerpid = pid; in hastd_primary()