Fixed parent-child code being called in non-daemon mode.

This commit is contained in:
Markus Makela
2015-09-18 17:20:50 +03:00
parent 8d5ca11374
commit 601eac5a5d

View File

@ -2000,6 +2000,7 @@ int main(int argc, char **argv)
* Successful start, notify the parent process that it can exit.
*/
ss_dassert(rc == MAXSCALE_SHUTDOWN);
if(daemon_mode)
write_child_exit_code(daemon_pipe[1], rc);
MaxScaleStarted = time(0);