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/?a=commitdiff_plain;h=30ff4d3e;p=fcscs%2Ffcscs.git 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;