Commit 7c145b20 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Don't attempt to reopen sockets until child has died.

parent e2da0a8c
...@@ -393,8 +393,6 @@ mgt_launch_child(struct cli *cli) ...@@ -393,8 +393,6 @@ mgt_launch_child(struct cli *cli)
mgt_child_inherit(heritage.cli_out, NULL); mgt_child_inherit(heritage.cli_out, NULL);
closex(&heritage.cli_out); closex(&heritage.cli_out);
MAC_reopen_sockets(cli);
child_std_vlu = VLU_New(NULL, child_line, 0); child_std_vlu = VLU_New(NULL, child_line, 0);
AN(child_std_vlu); AN(child_std_vlu);
...@@ -486,6 +484,8 @@ mgt_reap_child(void) ...@@ -486,6 +484,8 @@ mgt_reap_child(void)
fprintf(stderr, "WAIT 0x%jx\n", (uintmax_t)r); fprintf(stderr, "WAIT 0x%jx\n", (uintmax_t)r);
assert(r == child_pid); assert(r == child_pid);
MAC_reopen_sockets(NULL);
/* Compose obituary */ /* Compose obituary */
vsb = VSB_new_auto(); vsb = VSB_new_auto();
XXXAN(vsb); XXXAN(vsb);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment