aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYang Tse <yangsita@gmail.com>2006-07-19 15:26:28 +0000
committerYang Tse <yangsita@gmail.com>2006-07-19 15:26:28 +0000
commit46c5e562bfb5ce530f7f9d0ea9d686ca6e341d2a (patch)
treed3dc88c6af3ba1d0f8a15f7ca980e7571a3d7319
parent42f5a90d0963bd9d72e60d8a1d61e41e2ea0f9c8 (diff)
Abort if unable to write pid file.
-rw-r--r--tests/server/sws.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/tests/server/sws.c b/tests/server/sws.c
index db774f62a..7c3ba4f7d 100644
--- a/tests/server/sws.c
+++ b/tests/server/sws.c
@@ -802,6 +802,8 @@ int main(int argc, char *argv[])
}
else {
fprintf(stderr, "Couldn't write pid file\n");
+ sclose(sock);
+ exit(1);
}
logmsg("Running IPv%d version on port %d",