diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-19 18:01:04 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2001-01-19 18:01:04 +0000 |
commit | 5a124a937e1152d8b8eaa56c0937bc15c193556d (patch) | |
tree | 6a53d4f8e4db141d0cec440b6a5055e9da9bd753 /libexec/rlogind | |
parent | 84feb65f67f9dfdd4c1946c042d07d10c65d4feb (diff) |
do _exit() in exit handler, if it is a signal
Diffstat (limited to 'libexec/rlogind')
-rw-r--r-- | libexec/rlogind/rlogind.c | 7 |
1 files changed, 5 insertions, 2 deletions
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 |