From: Simon Ruderich Date: Sat, 23 Jan 2016 16:46:43 +0000 (+0100) Subject: run_in_background: fix execution when debug mode is enabled X-Git-Url: https://ruderich.org/simon/gitweb/?p=fcscs%2Ffcscs.git;a=commitdiff_plain;h=30ff4d3ea1ed327f29e3ed921792bdd996779728 run_in_background: fix execution when debug mode is enabled --- diff --git a/bin/fcscs b/bin/fcscs index 054842a..0033af8 100755 --- a/bin/fcscs +++ b/bin/fcscs @@ -458,6 +458,9 @@ sub run_in_background { my $pid = fork; defined $pid or die $!; if ($pid == 0) { # child + # Disable debug mode as writing will fail with closed STDERR. + $config->{setting}{debug} = 0; + $sub->(); } exit;