Commit 784396fd authored by Poul-Henning Kamp's avatar Poul-Henning Kamp Committed by Tollef Fog Heen

Don't leave pid file in weird error case.

parent 12095cf8
......@@ -595,8 +595,10 @@ MGT_Run(void)
REPORT0(LOG_ERR, "No VCL loaded yet");
else if (!d_flag) {
start_child(NULL);
if (child_state == CH_STOPPED)
exit(2);
if (child_state == CH_STOPPED) {
exit_status = 2;
return;
}
}
i = vev_schedule(mgt_evb);
......
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