Don't return from server() as we can't guarentee that everything is cleaned up.

This commit is contained in:
Jeremy Lakeman 2014-06-30 22:37:55 +09:30
parent 8f3acce75f
commit 6f5160bf54

@ -169,8 +169,10 @@ int server()
* if the code reaches here, the check has been done recently.
*/
server_unlink_pid();
serverMode = 0;
RETURN(0);
// note that we haven't tried to free all types of allocated memory used by the server.
// so it's safer to force this process to close, instead of trying to release everything.
exit(0);
OUT();
}