aboutsummaryrefslogtreecommitdiff
path: root/regress/tests/Proc.pm
diff options
context:
space:
mode:
Diffstat (limited to 'regress/tests/Proc.pm')
-rw-r--r--regress/tests/Proc.pm5
1 files changed, 3 insertions, 2 deletions
diff --git a/regress/tests/Proc.pm b/regress/tests/Proc.pm
index 8f46012..a98cc17 100644
--- a/regress/tests/Proc.pm
+++ b/regress/tests/Proc.pm
@@ -1,4 +1,4 @@
-# $OpenBSD: Proc.pm,v 1.1 2015/07/16 16:35:57 reyk Exp $
+# $OpenBSD: Proc.pm,v 1.2 2016/05/03 19:13:04 bluhm Exp $
# Copyright (c) 2010-2014 Alexander Bluhm <bluhm@openbsd.org>
#
@@ -147,7 +147,8 @@ sub loggrep {
my $self = shift;
my($regex, $timeout) = @_;
- my $end = time() + $timeout if $timeout;
+ my $end;
+ $end = time() + $timeout if $timeout;
do {
my($kid, $status, $code) = $self->wait(WNOHANG);