From 1b1b579bcfb779296ce05eb7729c474274009063 Mon Sep 17 00:00:00 2001 From: Alexander Bluhm Date: Sun, 28 Aug 2011 13:27:36 +0000 Subject: Minor cleanup. --- regress/sys/kern/splice/Proc.pm | 4 ++-- regress/sys/kern/splice/Relay.pm | 4 +++- 2 files changed, 5 insertions(+), 3 deletions(-) (limited to 'regress/sys') 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 # @@ -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 # @@ -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"; -- cgit v1.2.3