From bb3365336691239790cfc5b2e46288751d5eeadd Mon Sep 17 00:00:00 2001 From: =?utf8?q?Jan=20Kr=C3=BCger?= Date: Fri, 5 Nov 2010 06:01:18 +0100 Subject: [PATCH] jobd: fix a few typos that prevent it from running MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Go me. Signed-off-by: Jan Krüger --- jobd/jobd.pl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/jobd/jobd.pl b/jobd/jobd.pl index 5450178..6e0fe90 100755 --- a/jobd/jobd.pl +++ b/jobd/jobd.pl @@ -9,6 +9,7 @@ use warnings; use Getopt::Long; use Pod::Usage; +use POSIX ":sys_wait_h"; use Girocco::Config; use Girocco::Project; @@ -194,7 +195,7 @@ sub reap_finished_jobs { if ($status == 0) { next; } elsif ($status == 1 && defined($child[0]->{'on_error'})) { $child[0]->{'on_error'}->($_); - } elsif ($status == 2 && defined($child[0]_->{'on_success'})) { + } elsif ($status == 2 && defined($child[0]->{'on_success'})) { $child[0]->{'on_success'}->($_); } $jobs_executed++; -- 2.11.4.GIT