summaryrefslogtreecommitdiffstats
path: root/Source/kwsys/Process.h.in
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2003-12-16 22:20:01 (GMT)
committerBrad King <brad.king@kitware.com>2003-12-16 22:20:01 (GMT)
commit802601b6067198e175b34cb7a5133f5b491b4f2f (patch)
treef952856bbb5a759444c5147ea9634673faf4f06f /Source/kwsys/Process.h.in
parentab0a30e2b3f2fc3fc8d3eacddd7f7e2210faa426 (diff)
downloadCMake-802601b6067198e175b34cb7a5133f5b491b4f2f.zip
CMake-802601b6067198e175b34cb7a5133f5b491b4f2f.tar.gz
CMake-802601b6067198e175b34cb7a5133f5b491b4f2f.tar.bz2
ENH: Added SetPipeShared method to allow stdout and stderr pipes to be shared with the parent process.
Diffstat (limited to 'Source/kwsys/Process.h.in')
-rw-r--r--Source/kwsys/Process.h.in10
1 files changed, 10 insertions, 0 deletions
diff --git a/Source/kwsys/Process.h.in b/Source/kwsys/Process.h.in
index 944d92c..83e3060 100644
--- a/Source/kwsys/Process.h.in
+++ b/Source/kwsys/Process.h.in
@@ -31,6 +31,7 @@
#define kwsysProcess_SetTimeout kwsys(Process_SetTimeout)
#define kwsysProcess_SetWorkingDirectory kwsys(Process_SetWorkingDirectory)
#define kwsysProcess_SetPipeFile kwsys(Process_SetPipeFile)
+#define kwsysProcess_SetPipeShared kwsys(Process_SetPipeShared)
#define kwsysProcess_Option_HideWindow kwsys(Process_Option_HideWindow)
#define kwsysProcess_GetOption kwsys(Process_GetOption)
#define kwsysProcess_SetOption kwsys(Process_SetOption)
@@ -130,6 +131,14 @@ kwsysEXPORT int kwsysProcess_SetPipeFile(kwsysProcess* cp, int pipe,
const char* file);
/**
+ * Set whether the given pipe in the child is shared with the parent
+ * process. The default is no for Pipe_STDOUT and Pipe_STDERR and yes
+ * for Pipe_STDIN.
+ */
+kwsysEXPORT void kwsysProcess_SetPipeShared(kwsysProcess* cp, int pipe,
+ int shared);
+
+/**
* Get/Set a platform-specific option. Possible options are:
*
* kwsysProcess_Option_HideWindow = Whether to hide window on Windows.
@@ -301,6 +310,7 @@ kwsysEXPORT void kwsysProcess_Kill(kwsysProcess* cp);
# undef kwsysProcess_SetTimeout
# undef kwsysProcess_SetWorkingDirectory
# undef kwsysProcess_SetPipeFile
+# undef kwsysProcess_SetPipeShared
# undef kwsysProcess_Option_HideWindow
# undef kwsysProcess_GetOption
# undef kwsysProcess_SetOption