]> rtime.felk.cvut.cz Git - can-benchmark.git/commitdiff
run.pl redirects stdout rather than stderr in order to not loose error messages
authorMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 5 Feb 2014 16:33:08 +0000 (17:33 +0100)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Wed, 5 Feb 2014 16:33:08 +0000 (17:33 +0100)
continuous/gw-setup/run.pl

index 04433d6bd102c51b15745b5ba206490ba75ea32e..befe36e7e63a473e48003592a359eca5a48419a4 100755 (executable)
@@ -50,7 +50,7 @@ sub run_boot()
        setpgrp(); # Start new process group so that we can kill all
                    # background processes at once
        close($boot);
        setpgrp(); # Start new process group so that we can kill all
                    # background processes at once
        close($boot);
-       open(STDERR, ">&", $wh) || die "Can't dup STDERR: $!";
+       open(STDOUT, ">&", $wh) || die "Can't dup STDOUT: $!";
        my $cmd = "$bootcmd | tee /dev/stderr";
        exec($cmd) || die "Can't exec $cmd: $!";
     }
        my $cmd = "$bootcmd | tee /dev/stderr";
        exec($cmd) || die "Can't exec $cmd: $!";
     }