]> iEval git - gruntmaster-daemon.git/commitdiff
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 828252a58c037cb0f4419bf07c563bad09e11d13..66deec111f52b2a284ffe61745f29e8621eac0eb 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.022411 seconds and 4 git commands to generate.