Follow-up fixes to serval.pid clobber termination

This commit is contained in:
Andrew Bettison 2012-05-08 11:27:07 +09:30
parent acc5e48f4f
commit 6376baf8b8
2 changed files with 2 additions and 5 deletions

View File

@ -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>

View File

@ -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));