summaryrefslogtreecommitdiff
path: root/regress/sys
diff options
context:
space:
mode:
authorAlexander Bluhm <bluhm@cvs.openbsd.org>2011-08-28 13:27:36 +0000
committerAlexander Bluhm <bluhm@cvs.openbsd.org>2011-08-28 13:27:36 +0000
commit1b1b579bcfb779296ce05eb7729c474274009063 (patch)
treee83089ce7c64d22f73f4fca14280b2bb69ec0d3b /regress/sys
parente00c6618b182d516b14856b2101f3b30f4f6ea84 (diff)
Minor cleanup.
Diffstat (limited to 'regress/sys')
-rw-r--r--regress/sys/kern/splice/Proc.pm4
-rw-r--r--regress/sys/kern/splice/Relay.pm4
2 files changed, 5 insertions, 3 deletions
diff --git a/regress/sys/kern/splice/Proc.pm b/regress/sys/kern/splice/Proc.pm
index ac04baa9938..8e1838f00d1 100644
--- a/regress/sys/kern/splice/Proc.pm
+++ b/regress/sys/kern/splice/Proc.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Proc.pm,v 1.1 2011/01/07 22:06:08 bluhm Exp $
+# $OpenBSD: Proc.pm,v 1.2 2011/08/28 13:27:35 bluhm Exp $
# Copyright (c) 2010 Alexander Bluhm <bluhm@openbsd.org>
#
@@ -35,8 +35,8 @@ BEGIN {
}
END {
- $SIG{TERM} = $SIG{INT} = 'DEFAULT';
kill TERM => keys %CHILDREN;
+ $SIG{TERM} = $SIG{INT} = 'DEFAULT';
}
sub new {
diff --git a/regress/sys/kern/splice/Relay.pm b/regress/sys/kern/splice/Relay.pm
index c2ac5240cd5..f2e7f903462 100644
--- a/regress/sys/kern/splice/Relay.pm
+++ b/regress/sys/kern/splice/Relay.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Relay.pm,v 1.1 2011/01/07 22:06:08 bluhm Exp $
+# $OpenBSD: Relay.pm,v 1.2 2011/08/28 13:27:35 bluhm Exp $
# Copyright (c) 2010 Alexander Bluhm <bluhm@openbsd.org>
#
@@ -30,6 +30,8 @@ sub new {
my %args = @_;
$args{logfile} ||= "relay.log";
$args{up} ||= "Connected";
+ $args{forward}
+ or croak "$class forward not given";
my $self = Proc::new($class, %args);
$self->{listendomain}
or croak "$class listen domain not given";