flush
[awesomized/libmemcached] / testing / lib / ForkAndExec.hpp
index b88c56a727a1a0ba575765926a8a17b4afca675f..ff70abb98f20e40825b37496681d85ad08529f7b 100644 (file)
@@ -4,6 +4,8 @@
 
 class ForkAndExec {
 public:
+  enum { READ, WRITE } pipe;
+
   ForkAndExec(const char *binary, char **argv);
   ~ForkAndExec();
 
@@ -15,7 +17,7 @@ public:
   optional<pid_t> operator () ();
 
 private:
-  int pipes[2];
+  int ready[2], pipes[2];
   const char *binary;
   char **argv;
 };