Capture compile errors correctly
authorMarius Gavrilescu <marius@ieval.ro>
Mon, 25 Nov 2013 13:37:52 +0000 (15:37 +0200)
committerMarius Gavrilescu <marius@ieval.ro>
Mon, 25 Nov 2013 13:37:52 +0000 (15:37 +0200)
lib/Gruntmaster/Daemon/Format/CPP.pm

index 828252a..66deec1 100644 (file)
@@ -27,7 +27,7 @@ sub prepare{
 
   open my $devnull, devnull;
   open my $errors, '>compile-error';
-  my $ret = open3 $devnull, $errors, $errors, 'g++', '-o', $basename, $name;
+  my $ret = open3 $devnull, $errors, undef, 'g++', '-o', $basename, $name;
   local $SIG{ALRM} = sub {kill KILL => $ret};
   alarm 5;
   wait;
This page took 0.011337 seconds and 4 git commands to generate.