diff options
author | 2010-08-21 19:43:35 +0100 | |
---|---|---|
committer | 2010-08-21 19:57:05 +0100 | |
commit | dc29bb3d722b70c0ed12c022f9fcd758f9163505 (patch) | |
tree | 90e0863104b24bc59b37e593e69eb70820a5dde5 | |
parent | e418cc2574ed08885521a9c85c4fc4121ed7da74 (diff) | |
download | paludis-dc29bb3d722b70c0ed12c022f9fcd758f9163505.tar.gz paludis-dc29bb3d722b70c0ed12c022f9fcd758f9163505.tar.xz |
scripts -> Process
-rw-r--r-- | src/clients/cave/script_command.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/clients/cave/script_command.cc b/src/clients/cave/script_command.cc index 215b8b713..df895d213 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"); } |