mirror of
https://github.com/servalproject/serval-dna.git
synced 2025-04-08 03:24:13 +00:00
Follow-up fixes to serval.pid clobber termination
This commit is contained in:
parent
acc5e48f4f
commit
6376baf8b8
@ -18,7 +18,6 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
*/
|
||||
|
||||
#define _GNU_SOURCE // For asprintf()
|
||||
#include <sys/stat.h>
|
||||
#include <sys/time.h>
|
||||
#include <math.h>
|
||||
#include <string.h>
|
||||
|
6
server.c
6
server.c
@ -20,6 +20,7 @@ Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
|
||||
#include <time.h>
|
||||
#include <sys/socket.h>
|
||||
#include <netinet/in.h>
|
||||
#include <sys/stat.h>
|
||||
|
||||
#include "serval.h"
|
||||
|
||||
@ -582,10 +583,7 @@ int simpleServerMode()
|
||||
int len;
|
||||
int r;
|
||||
|
||||
if (servalShutdown) {
|
||||
serverCleanUp();
|
||||
exit(0);
|
||||
}
|
||||
server_shutdown_check();
|
||||
|
||||
bzero((void *)&recvaddr,sizeof(recvaddr));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user