summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrancois Pons <fpons@mandriva.com>2001-07-12 13:34:24 +0000
committerFrancois Pons <fpons@mandriva.com>2001-07-12 13:34:24 +0000
commitaaea204a0f2b55787d2f8e38a1ecbfbb4409c2d2 (patch)
tree2082842a6b2c4eaff92a362da039418f9766c2f1
parenta87fb7dd79cd3aeafbcfb8bd6d141f9dfe7cd52f (diff)
downloaddrakx-aaea204a0f2b55787d2f8e38a1ecbfbb4409c2d2.tar
drakx-aaea204a0f2b55787d2f8e38a1ecbfbb4409c2d2.tar.gz
drakx-aaea204a0f2b55787d2f8e38a1ecbfbb4409c2d2.tar.bz2
drakx-aaea204a0f2b55787d2f8e38a1ecbfbb4409c2d2.tar.xz
drakx-aaea204a0f2b55787d2f8e38a1ecbfbb4409c2d2.zip
changed exit code of failed exec in rooted to 128 instead of 1 (may clash with
exit code of fsck else).
-rw-r--r--perl-install/run_program.pm4
1 files changed, 2 insertions, 2 deletions
diff --git a/perl-install/run_program.pm b/perl-install/run_program.pm
index a0a966efa..f56c59f4d 100644
--- a/perl-install/run_program.pm
+++ b/perl-install/run_program.pm
@@ -56,12 +56,12 @@ sub rooted {
if (ref $name) {
unless (exec { $name->[0] } $name->[1], @args) {
log::l("exec of $name->[0] failed: $!");
- c::_exit(1);
+ c::_exit(128);
}
} else {
unless (exec $name, @args) {
log::l("exec of $name failed: $!");
- c::_exit(1);
+ c::_exit(128);
}
}