mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-24 04:55:54 +00:00
Don't return from server() as we can't guarentee that everything is cleaned up.
This commit is contained in:
parent
8f3acce75f
commit
6f5160bf54
6
server.c
6
server.c
@ -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();
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user