From 5a124a937e1152d8b8eaa56c0937bc15c193556d Mon Sep 17 00:00:00 2001 From: Theo de Raadt Date: Fri, 19 Jan 2001 18:01:04 +0000 Subject: do _exit() in exit handler, if it is a signal --- libexec/rlogind/rlogind.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'libexec/rlogind/rlogind.c') diff --git a/libexec/rlogind/rlogind.c b/libexec/rlogind/rlogind.c index 80092d56224..57458e25856 100644 --- a/libexec/rlogind/rlogind.c +++ b/libexec/rlogind/rlogind.c @@ -39,7 +39,7 @@ static char copyright[] = #ifndef lint /* from: static char sccsid[] = "@(#)rlogind.c 8.1 (Berkeley) 6/4/93"; */ -static char *rcsid = "$Id: rlogind.c,v 1.25 2000/11/10 17:46:08 itojun Exp $"; +static char *rcsid = "$Id: rlogind.c,v 1.26 2001/01/19 18:01:03 deraadt Exp $"; #endif /* not lint */ /* @@ -580,7 +580,10 @@ cleanup(signo) (void)chmod(line, 0666); (void)chown(line, 0, 0); shutdown(netf, 2); - exit(1); + if (signo) + _exit(1); + else + exit(1); } void -- cgit v1.2.3