aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-21 19:43:35 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-21 19:57:05 +0100
commitdc29bb3d722b70c0ed12c022f9fcd758f9163505 (patch)
tree90e0863104b24bc59b37e593e69eb70820a5dde5
parente418cc2574ed08885521a9c85c4fc4121ed7da74 (diff)
downloadpaludis-dc29bb3d722b70c0ed12c022f9fcd758f9163505.tar.gz
paludis-dc29bb3d722b70c0ed12c022f9fcd758f9163505.tar.xz
scripts -> Process
-rw-r--r--src/clients/cave/script_command.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/clients/cave/script_command.cc b/src/clients/cave/script_command.cc
index 215b8b7..df895d2 100644
--- a/src/clients/cave/script_command.cc
+++ b/src/clients/cave/script_command.cc
@@ -26,6 +26,7 @@
#include <paludis/util/system.hh>
#include <paludis/util/fs_entry.hh>
#include <paludis/util/stringify.hh>
+#include <paludis/util/process.hh>
#include <iostream>
#include <cstdlib>
@@ -70,8 +71,9 @@ ScriptCommand::run(
n != n_end ; ++n)
arg_str = " " + args::escape(*n);
- paludis::Command cmd(stringify(_imp->executable) + arg_str);
- become_command(cmd);
+ Process process((ProcessCommand(stringify(_imp->executable) + arg_str)));
+ int retcode(process.run().wait());
+ _exit(retcode);
throw InternalError(PALUDIS_HERE, "become_command failed");
}