From 400d8bb45ee25ce226bb343a3dfaab84e6d3a8e1 Mon Sep 17 00:00:00 2001 From: Denis Vlasenko Date: Sun, 24 Feb 2008 13:36:01 +0000 Subject: less,klogd,syslogd,nc,tcpudp: exit on signal by killing itself, not exit(1) *: minor shrink --- ipsvd/tcpudp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ipsvd/tcpudp.c') diff --git a/ipsvd/tcpudp.c b/ipsvd/tcpudp.c index dc61d6f76..b3a2c7a77 100644 --- a/ipsvd/tcpudp.c +++ b/ipsvd/tcpudp.c @@ -68,7 +68,7 @@ static void sig_term_handler(int sig) { if (verbose) printf("%s: info: sigterm received, exit\n", applet_name); - exit(0); + kill_myself_with_sig(sig); } /* Little bloated, but tries to give accurate info how child exited. -- cgit v1.2.3