Fix control socket leak when worker process exits.
Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
This commit is contained in:
parent
d54e6dc056
commit
9358f8fa2b
@ -137,6 +137,7 @@ child_exit(void)
|
||||
pjdlog_error("Worker process failed (pid=%u, status=%d).",
|
||||
(unsigned int)pid, WEXITSTATUS(status));
|
||||
}
|
||||
proto_close(res->hr_ctrl);
|
||||
res->hr_workerpid = 0;
|
||||
if (res->hr_role == HAST_ROLE_PRIMARY) {
|
||||
sleep(1);
|
||||
|
Loading…
Reference in New Issue
Block a user