summaryrefslogtreecommitdiff
path: root/libexec/rpc.rwalld
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.rwalld
parent3c9efbc8dfcbab7f0dd3f31eb3de8febadb429a5 (diff)
use _exit() in signal handlers, and flag that the pmap_unset() calls are unsafe
Diffstat (limited to 'libexec/rpc.rwalld')
-rw-r--r--libexec/rpc.rwalld/rwalld.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/libexec/rpc.rwalld/rwalld.c b/libexec/rpc.rwalld/rwalld.c
index e0e65892e51..b23ffad5338 100644
--- a/libexec/rpc.rwalld/rwalld.c
+++ b/libexec/rpc.rwalld/rwalld.c
@@ -28,7 +28,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: rwalld.c,v 1.2 1996/12/22 03:41:18 tholo Exp $";
+static char rcsid[] = "$Id: rwalld.c,v 1.3 2001/01/17 19:23:27 deraadt Exp $";
#endif /* not lint */
#include <unistd.h>
@@ -57,8 +57,8 @@ int from_inetd = 1;
void
cleanup()
{
- (void) pmap_unset(WALLPROG, WALLVERS);
- exit(0);
+ (void) pmap_unset(WALLPROG, WALLVERS); /* XXX signal race */
+ _exit(0);
}
main(argc, argv)