From 0ad1804ea1f7fdc6d8462e7a637d30d2151169ef Mon Sep 17 00:00:00 2001 From: Ray Lai Date: Wed, 25 Apr 2007 04:56:15 +0000 Subject: Remove extra code that only applies to setuid/setgid programs. ``Slacker! We'll burn your hands if you don't get going!'' deraadt@ --- usr.bin/sendbug/sendbug.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'usr.bin/sendbug') 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 . @@ -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); -- cgit v1.2.3