diff options
author | 2001-01-19 18:01:03 +0000 | |
---|---|---|
committer | 2001-01-19 18:01:03 +0000 | |
commit | 34abb11d021bc3a1f9e2107847324d0583fab247 (patch) | |
tree | 272a98b42ac74eec3058982bec99549c73251c3b | |
parent | mark remaining signal races which are difficult to fix, and fix a few partially (diff) | |
download | wireguard-openbsd-34abb11d021bc3a1f9e2107847324d0583fab247.tar.xz wireguard-openbsd-34abb11d021bc3a1f9e2107847324d0583fab247.zip |
do _exit() in exit handler, if it is a signal
-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 |