Commit 82c00f6f authored by Dridi Boukelmoune's avatar Dridi Boukelmoune

Keep the child as "starting" until it's fully launched

parent 148893f1
......@@ -395,7 +395,6 @@ mgt_launch_child(struct cli *cli)
mgt_cli_start_child(child_cli_in, child_cli_out);
child_pid = pid;
child_state = CH_RUNNING;
if (mgt_push_vcls(cli, &u, &p)) {
VCLI_SetResult(cli, u);
......@@ -414,6 +413,8 @@ mgt_launch_child(struct cli *cli)
MCH_Stop_Child();
return;
}
child_state = CH_RUNNING;
}
/*=====================================================================
......@@ -575,7 +576,7 @@ void
MCH_Cli_Fail(void)
{
if (child_state != CH_RUNNING)
if (child_state != CH_RUNNING && child_state != CH_STARTING)
return;
if (child_pid < 0)
return;
......@@ -597,7 +598,7 @@ void
MCH_Stop_Child(void)
{
if (child_state != CH_RUNNING)
if (child_state != CH_RUNNING && child_state != CH_STARTING)
return;
child_state = CH_STOPPING;
......
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