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 04433d6..befe36e 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);
-       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: $!";
     }