summaryrefslogtreecommitdiff
path: root/usr.bin/sendbug/sendbug.c
diff options
context:
space:
mode:
authorRay Lai <ray@cvs.openbsd.org>2007-04-25 04:56:15 +0000
committerRay Lai <ray@cvs.openbsd.org>2007-04-25 04:56:15 +0000
commit0ad1804ea1f7fdc6d8462e7a637d30d2151169ef (patch)
tree432cf6e4c7225f2876bbeb51cf03a4cb653bf774 /usr.bin/sendbug/sendbug.c
parenta76bf5230df6fb1f42acded47adbb72f598fd5c6 (diff)
Remove extra code that only applies to setuid/setgid programs.
``Slacker! We'll burn your hands if you don't get going!'' deraadt@
Diffstat (limited to 'usr.bin/sendbug/sendbug.c')
-rw-r--r--usr.bin/sendbug/sendbug.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/usr.bin/sendbug/sendbug.c b/usr.bin/sendbug/sendbug.c
index 7cd321aca11..5cb53f8250c 100644
--- a/usr.bin/sendbug/sendbug.c
+++ b/usr.bin/sendbug/sendbug.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: sendbug.c,v 1.42 2007/04/07 04:58:50 ray Exp $ */
+/* $OpenBSD: sendbug.c,v 1.43 2007/04/25 04:56:14 ray Exp $ */
/*
* Written by Ray Lai <ray@cyth.net>.
@@ -262,12 +262,10 @@ editit(const char *pathname)
}
free(p);
for (;;) {
- if (waitpid(pid, &st, WUNTRACED) == -1) {
+ if (waitpid(pid, &st, 0) == -1) {
if (errno != EINTR)
return (-1);
- } else if (WIFSTOPPED(st))
- raise(WSTOPSIG(st));
- else
+ } else
break;
}
(void)signal(SIGHUP, sighup);