We close the event socketpair early in the mainloop to prevent spaming with
error messages, so when we clean up after child process, we have to check if the event socketpair is still there. Submitted by: Mikolaj Golub <to.my.trociny@gmail.com> MFC after: 3 days
This commit is contained in:
parent
1fe259cdd8
commit
022f07b682
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=213579
@ -58,8 +58,10 @@ child_cleanup(struct hast_resource *res)
|
||||
|
||||
proto_close(res->hr_ctrl);
|
||||
res->hr_ctrl = NULL;
|
||||
proto_close(res->hr_event);
|
||||
res->hr_event = NULL;
|
||||
if (res->hr_event != NULL) {
|
||||
proto_close(res->hr_event);
|
||||
res->hr_event = NULL;
|
||||
}
|
||||
res->hr_workerpid = 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user