diff options
author | Christian Hesse <mail@eworm.de> | 2019-09-04 11:35:29 +0200 |
---|---|---|
committer | Christian Hesse <mail@eworm.de> | 2019-09-04 11:35:29 +0200 |
commit | ad9bd94d84d32d0a4d0a5f4448d1b54fb81a6fa6 (patch) | |
tree | 1dda5c4c55be99f7a1cde27b8e4b0c1715225740 | |
parent | 0ec7d10a675e8d778f999a158cc46c549e55c2ed (diff) | |
download | udp514-journal-ad9bd94d84d32d0a4d0a5f4448d1b54fb81a6fa6.tar.gz udp514-journal-ad9bd94d84d32d0a4d0a5f4448d1b54fb81a6fa6.tar.zst |
close socket
-rw-r--r-- | udp514-journal.c | 3 |
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; } |