From 265cdcd031a897e2faba3edda332c9ead5228583 Mon Sep 17 00:00:00 2001 From: espie Date: Sun, 3 Mar 2013 00:49:14 +0000 Subject: [PATCH] prevent going to debugger on exit in children. allow LOGSIZE to set -s in the host file. --- infrastructure/lib/DPB/Core.pm | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/infrastructure/lib/DPB/Core.pm b/infrastructure/lib/DPB/Core.pm index c5b9c18be2b..48469750b0e 100644 --- a/infrastructure/lib/DPB/Core.pm +++ b/infrastructure/lib/DPB/Core.pm @@ -1,5 +1,5 @@ # ex:ts=8 sw=4: -# $OpenBSD: Core.pm,v 1.33 2013/01/29 11:16:58 espie Exp $ +# $OpenBSD: Core.pm,v 1.34 2013/03/03 00:49:14 espie Exp $ # # Copyright (c) 2010 Marc Espie # @@ -337,6 +337,7 @@ sub run_task if (!defined $pid) { die "Oops: task ".$core->task->name." couldn't start\n"; } elsif ($pid == 0) { + $DB::inhibit_exit = 0; for my $sig (keys %SIG) { $SIG{$sig} = 'DEFAULT'; } @@ -797,6 +798,9 @@ sub parse_hosts_file $state->{startup_script} = $1; next; } + if (m/^LOGSIZE=\s*1\s*$/) { + $state->{opt}{s} = 1; + } # copy default properties my $prop = { %$default }; my ($host, @properties) = split(/\s+/, $_);