summaryrefslogtreecommitdiff
path: root/libexec/rpc.rquotad/rquotad.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-17 19:23:29 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>2001-01-17 19:23:29 +0000
commit80f0ac7e0ddc7a9313b0d47c2317ba577516461b (patch)
tree0f1099d0286613b29dce227b0fd865b464d6b30b /libexec/rpc.rquotad/rquotad.c
parent3c9efbc8dfcbab7f0dd3f31eb3de8febadb429a5 (diff)
use _exit() in signal handlers, and flag that the pmap_unset() calls are unsafe
Diffstat (limited to 'libexec/rpc.rquotad/rquotad.c')
-rw-r--r--libexec/rpc.rquotad/rquotad.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.rquotad/rquotad.c b/libexec/rpc.rquotad/rquotad.c
index 6fe944cdb30..d37cec41443 100644
--- a/libexec/rpc.rquotad/rquotad.c
+++ b/libexec/rpc.rquotad/rquotad.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: rquotad.c,v 1.7 2000/10/19 01:56:05 pjanzen Exp $ */
+/* $OpenBSD: rquotad.c,v 1.8 2001/01/17 19:23:26 deraadt Exp $ */
/*
* by Manuel Bouyer (bouyer@ensta.fr)
*
@@ -53,8 +53,8 @@ int from_inetd = 1;
void
cleanup()
{
- (void) pmap_unset(RQUOTAPROG, RQUOTAVERS);
- exit(0);
+ (void) pmap_unset(RQUOTAPROG, RQUOTAVERS); /* XXX signal races */
+ _exit(0);
}
int