]> git.tdb.fi Git - builder.git/blobdiff - source/externaltask.h
Rewrite ExternalTask to use Msp::Process
[builder.git] / source / externaltask.h
index cb8464beab873ef24146b49a5ab02bd6a9aaa21c..992df5c692a4c7bf8dfd6e6a208d2c64f15afdc0 100644 (file)
@@ -3,6 +3,7 @@
 
 #include <string>
 #include <vector>
+#include <msp/core/process.h>
 #include <msp/fs/path.h>
 #include <msp/io/pipe.h>
 #include "task.h"
@@ -22,12 +23,12 @@ public:
                IGNORE        //< Redirect the stream to oblivion
        };
 
-       typedef std::vector<std::string> Arguments;
+       typedef Msp::Process::Arguments Arguments;
 
 private:
        Arguments argv;
        Msp::FS::Path work_dir;
-       int pid;
+       Msp::Process *process;
        int exit_code;
        Destination stdout_dest;
        Destination stderr_dest;