From ad9bd94d84d32d0a4d0a5f4448d1b54fb81a6fa6 Mon Sep 17 00:00:00 2001 From: Christian Hesse Date: Wed, 4 Sep 2019 11:35:29 +0200 Subject: close socket --- udp514-journal.c | 3 +++ 1 file changed, 3 insertions(+) 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; } -- cgit v1.2.3-70-g09d2