aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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;
}