From ae0d9ab8c38d6b181733e679d4eec109b70b5e53 Mon Sep 17 00:00:00 2001 From: Gerhard Jungwirth Date: Fri, 27 Sep 2013 14:33:51 +0200 Subject: [PATCH] Really stop mysqld when Ctrl-C is pressed during ./Build test --- inc/Local/Module/Build.pm | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/inc/Local/Module/Build.pm b/inc/Local/Module/Build.pm index 390d099617..bdfc79094b 100644 --- a/inc/Local/Module/Build.pm +++ b/inc/Local/Module/Build.pm @@ -59,6 +59,8 @@ sub _test_preconditions { blib->import($opt{'schema-base-dir'}) } + $SIG{'INT'} = sub { exit(1) }; # for clean stopping of servers + if ($opt{'mysqld-port'} && $opt{'mysql-dump'}) { require Test::mysqld; $mysqld = Test::mysqld->new( @@ -83,6 +85,8 @@ sub _test_preconditions { $ENV{ NGCP_PANEL_CONFIG_LOCAL_SUFFIX } = "testing"; $plackup = child { my $debug_fh = IO::File->new("panel_debug_output", "w+"); + $debug_fh->autoflush(1); + local $| = 1; capture_merged { exec $^X, '-Ilib',