summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2015-05-13 06:59:18 +0200
committerChristian Pointner <equinox@spreadspace.org>2015-05-13 07:00:24 +0200
commitd150fdd58aa5b188d6e0d2bafb2fcc87430e1786 (patch)
tree9372d628ff65c901d6dd4f9969f0343f6858ab90
parentfix exit-code after signal (diff)
cleanup after signale fixed
-rw-r--r--src/tcpproxy.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/tcpproxy.c b/src/tcpproxy.c
index a22744a..a328f26 100644
--- a/src/tcpproxy.c
+++ b/src/tcpproxy.c
@@ -238,6 +238,7 @@ int main(int argc, char* argv[])
log_printf(NOTICE, "shutdown after error");
else {
log_printf(NOTICE, "shutdown after signal");
+ log_close();
kill(getpid(), ret);
}