summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-02 16:20:14 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-11-02 16:20:14 +0000
commit4b04812d48ab55704a52929c162801889cfb7315 (patch)
treeda299d4d2501f36217abe677759f4fc66bf23670
parent9a220fbad5dd513de55c52e6eb1152e0f0783100 (diff)
_exit() in signal handler
-rw-r--r--libexec/telnetd/sys_term.c2
-rw-r--r--usr.sbin/wsmoused/wsmoused.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/libexec/telnetd/sys_term.c b/libexec/telnetd/sys_term.c
index e0bf301bd93..d4675c67349 100644
--- a/libexec/telnetd/sys_term.c
+++ b/libexec/telnetd/sys_term.c
@@ -1653,7 +1653,7 @@ cleanup(int sig)
chown(line, 0, 0);
#endif
shutdown(net, 2);
- exit(1);
+ _exit(1);
}
#endif /* PARENT_DOES_UTMP */
diff --git a/usr.sbin/wsmoused/wsmoused.c b/usr.sbin/wsmoused/wsmoused.c
index d0a80dbb2f6..65561f132cf 100644
--- a/usr.sbin/wsmoused/wsmoused.c
+++ b/usr.sbin/wsmoused/wsmoused.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: wsmoused.c,v 1.5 2001/09/20 21:22:16 miod Exp $ */
+/* $OpenBSD: wsmoused.c,v 1.6 2001/11/02 16:19:48 deraadt Exp $ */
/*
* Copyright (c) 2001 Jean-Baptiste Marchand, Julien Montagne and Jerome Verdon
@@ -231,7 +231,7 @@ terminate(int sig)
mouse.mfd = -1;
}
unlink(pidfile);
- exit(0);
+ _exit(0);
}
/* buttons status (for multiple click detection) */