summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2019-09-04 11:35:29 +0200
committerGravatar Christian Hesse <mail@eworm.de>2019-09-04 11:35:29 +0200
commitad9bd94d84d32d0a4d0a5f4448d1b54fb81a6fa6 (patch)
tree1dda5c4c55be99f7a1cde27b8e4b0c1715225740
parent0ec7d10a675e8d778f999a158cc46c549e55c2ed (diff)
downloadudp514-journal-ad9bd94d84d32d0a4d0a5f4448d1b54fb81a6fa6.tar.gz
udp514-journal-ad9bd94d84d32d0a4d0a5f4448d1b54fb81a6fa6.tar.zst
close socket
-rw-r--r--udp514-journal.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/udp514-journal.c b/udp514-journal.c
index 6123c22..cef688f 100644
--- a/udp514-journal.c
+++ b/udp514-journal.c
@@ -54,5 +54,8 @@ int main(int argc, char **argv) {
sd_notifyf(0, "READY=1\nSTATUS=Forwarded %d syslog messages.", ++count);
}
+ /* close socket */
+ close(s);
+
return EXIT_SUCCESS;
}