diff options
author | Kenny Levinsen <kl@kl.wtf> | 2020-08-01 16:53:34 +0200 |
---|---|---|
committer | Kenny Levinsen <kl@kl.wtf> | 2020-08-01 17:02:28 +0200 |
commit | 6f6f5de15431cfb9f8961359e96d32eaeb15bcad (patch) | |
tree | b315c14fe7040e6f192382298fa4fe7368eaec3f /seatd | |
parent | 957483fde564d0313a842577602d6bf5de314871 (diff) |
seatd: Perform clean server shutdown
Diffstat (limited to 'seatd')
-rw-r--r-- | seatd/seatd.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/seatd/seatd.c b/seatd/seatd.c index cfed341..c1cdccf 100644 --- a/seatd/seatd.c +++ b/seatd/seatd.c @@ -41,6 +41,7 @@ int main(int argc, char *argv[]) { if (server_listen(server, path) == -1) { log_errorf("server_listen failed: %s", strerror(errno)); + server_destroy(server); return 1; } @@ -52,6 +53,8 @@ int main(int argc, char *argv[]) { return 1; } } + + server_destroy(server); unlink(path); return 0; } |