Abort if unable to write pid file.

This commit is contained in:
Yang Tse
2006-07-19 15:26:28 +00:00
parent 42f5a90d09
commit 46c5e562bf

View File

@@ -802,6 +802,8 @@ int main(int argc, char *argv[])
} }
else { else {
fprintf(stderr, "Couldn't write pid file\n"); fprintf(stderr, "Couldn't write pid file\n");
sclose(sock);
exit(1);
} }
logmsg("Running IPv%d version on port %d", logmsg("Running IPv%d version on port %d",