Home
last modified time | relevance | path

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

/freebsd/sbin/hastd/
H A Dcontrol.c68 res->hr_workerpid = 0; in child_cleanup()
115 if (res->hr_workerpid != 0) { in control_set_role_common()
116 if (kill(res->hr_workerpid, SIGTERM) == -1) { in control_set_role_common()
119 (unsigned int)res->hr_workerpid); in control_set_role_common()
120 } else if (waitpid(res->hr_workerpid, NULL, 0) != in control_set_role_common()
121 res->hr_workerpid) { in control_set_role_common()
124 (unsigned int)res->hr_workerpid); in control_set_role_common()
127 (unsigned int)res->hr_workerpid); in control_set_role_common()
282 nv_add_int32(nvout, res->hr_workerpid, "workerpid%u", no); in control_status()
286 PJDLOG_ASSERT(res->hr_workerpid != 0); in control_status()
[all …]
H A Dhastd.c332 if (pid == res->hr_workerpid) in child_exit()
689 if (cres->hr_workerpid != 0) in hastd_reload()
728 if (res->hr_workerpid == 0) in terminate_workers()
731 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers()
732 if (kill(res->hr_workerpid, SIGTERM) == 0) in terminate_workers()
736 res->hr_name, role2str(res->hr_role), res->hr_workerpid); in terminate_workers()
876 if (res->hr_workerpid != 0) { in listen_accept()
880 (unsigned int)res->hr_workerpid); in listen_accept()
882 if (kill(res->hr_workerpid, SIGINT) == -1) { in listen_accept()
885 (unsigned int)res->hr_workerpid); in listen_accept()
[all …]
H A Dhast.h222 pid_t hr_workerpid; member
H A Dsecondary.c451 res->hr_workerpid = pid; in hastd_secondary()
H A Dprimary.c1013 res->hr_workerpid = pid; in hastd_primary()