summaryrefslogtreecommitdiff
path: root/libexec/telnetd
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-17 23:51:55 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-17 23:51:55 +0000
commit7f233cf75d308fcaec631d8b340057b2ee5482c1 (patch)
tree0c8104ec9b6db3c108989307539dad417f6082e1 /libexec/telnetd
parent97f3d2e28b4a96678d32e87a169e2d589faa3695 (diff)
signal handler should finish using _exit()
Diffstat (limited to 'libexec/telnetd')
-rw-r--r--libexec/telnetd/sys_term.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index 56f1f43e449..83d5f5ab417 100644
--- a/libexec/telnetd/sys_term.c
+++ b/libexec/telnetd/sys_term.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sys_term.c,v 1.21 2000/11/16 19:00:19 millert Exp $ */
+/* $OpenBSD: sys_term.c,v 1.22 2001/01/17 23:51:54 deraadt Exp $ */
/* $NetBSD: sys_term.c,v 1.9 1996/03/20 04:25:53 tls Exp $ */
/*
@@ -39,7 +39,7 @@
static char sccsid[] = "@(#)sys_term.c 8.4+1 (Berkeley) 5/30/95";
static char rcsid[] = "$NetBSD: sys_term.c,v 1.8 1996/02/28 20:38:21 thorpej Exp $";
#else
-static char rcsid[] = "$OpenBSD: sys_term.c,v 1.21 2000/11/16 19:00:19 millert Exp $";
+static char rcsid[] = "$OpenBSD: sys_term.c,v 1.22 2001/01/17 23:51:54 deraadt Exp $";
#endif
#endif /* not lint */
@@ -1881,19 +1881,19 @@ cleanup(sig)
(void)chmod(line, 0666);
(void)chown(line, 0, 0);
(void) shutdown(net, 2);
- exit(1);
+ _exit(1);
# else
void rmut();
rmut();
vhangup(); /* XXX */
(void) shutdown(net, 2);
- exit(1);
+ _exit(1);
# endif
#else /* PARENT_DOES_UTMP */
# ifdef NEWINIT
(void) shutdown(net, 2);
- exit(1);
+ _exit(1);
# else /* NEWINIT */
# ifdef CRAY
static int incleanup = 0;
@@ -1950,7 +1950,7 @@ cleanup(sig)
if (t == 0)
cleantmp(&wtmp);
# endif /* CRAY */
- exit(1);
+ _exit(1);
# endif /* NEWINT */
#endif /* PARENT_DOES_UTMP */
}