20 #ifndef __UT_WritePipe__
21 #define __UT_WritePipe__
28 #include <sys/types.h>
40 bool change_process_group =
false);
52 FILE *
open(const
char *cmd)
53 {
return open(cmd, NULL, NULL); }
59 FILE *
open(
const char *cmd,
73 int close(
bool wait_for_child_to_terminate =
false);
78 bool isComplete(
bool block =
false);
95 bool isSuspended()
const;
114 FILE *doPOpen(
char *cmd, FILE *kstdout, FILE *kstderr );
115 int isCompleteImpl(
bool block);
124 bool myChangeProcessGroup;
pid_t getPid() const
This method will return the child process id.
FILE * getFilePtr()
Return file handle for last open() call.
#define UT_NON_COPYABLE(CLASS)
Define deleted copy constructor and assignment operator inside a class.