aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-21 19:43:22 +0100
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2010-08-21 19:57:05 +0100
commite418cc2574ed08885521a9c85c4fc4121ed7da74 (patch)
treeed706f438f32d56ee528e629ea8b286cd6d1deca
parent447a8b665a0c4639db27ee788b3e2e505c6ed6ad (diff)
downloadpaludis-e418cc2574ed08885521a9c85c4fc4121ed7da74.tar.gz
paludis-e418cc2574ed08885521a9c85c4fc4121ed7da74.tar.xz
resume -> Process
-rw-r--r--src/clients/cave/cmd_resume.cc11
1 files changed, 7 insertions, 4 deletions
diff --git a/src/clients/cave/cmd_resume.cc b/src/clients/cave/cmd_resume.cc
index 49478ca..6cc4b50 100644
--- a/src/clients/cave/cmd_resume.cc
+++ b/src/clients/cave/cmd_resume.cc
@@ -38,6 +38,7 @@
#include <paludis/util/wrapped_forward_iterator.hh>
#include <paludis/util/wrapped_output_iterator.hh>
#include <paludis/util/string_list_stream.hh>
+#include <paludis/util/process.hh>
#include <paludis/resolver/job_lists.hh>
#include <paludis/resolver/job.hh>
#include <paludis/resolver/job_list.hh>
@@ -172,11 +173,13 @@ namespace
a != a_end ; ++a)
command = command + " " + args::escape(*a);
- paludis::Command cmd(command);
- cmd
- .with_input_stream(&ser_stream, -1, "PALUDIS_SERIALISED_RESOLUTION_FD");
+ Process process((ProcessCommand(command)));
+ process
+ .send_input_to_fd(ser_stream, -1, "PALUDIS_SERIALISED_RESOLUTION_FD")
+ .as_main_process();
- become_command(cmd);
+ int retcode(process.run().wait());
+ _exit(retcode);
}
else
return ExecuteResolutionCommand().run(env, args, data->job_lists());