summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1999-02-28 06:50:14 +0000
committerderaadt <deraadt@openbsd.org>1999-02-28 06:50:14 +0000
commit6cbcad2befeffbc70d2e4bddcb69431de94045e2 (patch)
tree3a5e80d6b642ab608bd17e91962cfb899441f4c9
parentmoving to 2.5-beta (diff)
downloadwireguard-openbsd-6cbcad2befeffbc70d2e4bddcb69431de94045e2.tar.xz
wireguard-openbsd-6cbcad2befeffbc70d2e4bddcb69431de94045e2.zip
if we kill, do not kill again
-rw-r--r--sbin/dump/tape.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/sbin/dump/tape.c b/sbin/dump/tape.c
index 0bba01e6c31..a9b1914f745 100644
--- a/sbin/dump/tape.c
+++ b/sbin/dump/tape.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: tape.c,v 1.9 1999/02/21 00:07:16 millert Exp $ */
+/* $OpenBSD: tape.c,v 1.10 1999/02/28 06:50:14 deraadt Exp $ */
/* $NetBSD: tape.c,v 1.11 1997/06/05 11:13:26 lukem Exp $ */
/*-
@@ -38,7 +38,7 @@
#if 0
static char sccsid[] = "@(#)tape.c 8.2 (Berkeley) 3/17/94";
#else
-static char rcsid[] = "$OpenBSD: tape.c,v 1.9 1999/02/21 00:07:16 millert Exp $";
+static char rcsid[] = "$OpenBSD: tape.c,v 1.10 1999/02/28 06:50:14 deraadt Exp $";
#endif
#endif /* not lint */
@@ -794,8 +794,10 @@ killall()
register int i;
for (i = 0; i < SLAVES; i++)
- if (slaves[i].pid > 0)
+ if (slaves[i].pid > 0) {
(void) kill(slaves[i].pid, SIGKILL);
+ slaves[i].pid = 0;
+ }
}
/*