summaryrefslogtreecommitdiffstats
ModeNameSize
-rw-r--r--.cvsignore47logstatsplain
-rw-r--r--Makefile3632logstatsplain
d---------docs829logstatsplain
d---------kernel236logstatsplain
-rw-r--r--live_update2414logstatsplain
-rwxr-xr-xmake_boot_img14489logstatsplain
d---------mdk-stage12436logstatsplain
d---------perl-install3801logstatsplain
d---------rescue753logstatsplain
d---------tools1163logstatsplain
tderrm); ($stdoutm, $stdout, @args) = @args if $args[0] =~ /^>>?$/; ($stderrm, $stderr, @args) = @args if $args[0] =~ /^2>>?$/; open STDIN, "/dev/null" or die "can't open /dev/null as stdin"; if ($stderr) { $stderrm =~ s/2//; open STDERR, "$stderrm $root$stderr" or die "run_program can't output in $root$stderr (mode `$stderrm')"; } elsif ($::isInstall) { open STDERR, ">> /tmp/ddebug.log" or open STDOUT, ">> /dev/tty7" or die "run_program can't log, give me access to /tmp/ddebug.log"; } if ($stdout) { open STDOUT, "$stdoutm $root$stdout" or die "run_program can't output in $root$stdout (mode `$stdoutm')"; } elsif ($::isInstall) { open STDOUT, ">> /tmp/ddebug.log" or open STDOUT, ">> /dev/tty7" or die "run_program can't log, give me access to /tmp/ddebug.log"; } $root and chroot $root; chdir "/"; if (ref $name) { unless (exec { $name->[0] } $name->[1], @args) { log::l("exec of $name->[0] failed: $!"); c::_exit(1); } } else { unless (exec $name, @args) { log::l("exec of $name failed: $!"); c::_exit(1); } } } }