diff options
Diffstat (limited to '')
-rw-r--r-- | src/stable/process.h | 25 |
1 files changed, 21 insertions, 4 deletions
diff --git a/src/stable/process.h b/src/stable/process.h index d6282e0..f010633 100644 --- a/src/stable/process.h +++ b/src/stable/process.h | |||
@@ -8,6 +8,10 @@ | |||
8 | #ifndef BU_PROCESS_H | 8 | #ifndef BU_PROCESS_H |
9 | #define BU_PROCESS_H | 9 | #define BU_PROCESS_H |
10 | 10 | ||
11 | #ifdef WIN32 | ||
12 | #include <windows.h> | ||
13 | #endif | ||
14 | |||
11 | #include <stdint.h> | 15 | #include <stdint.h> |
12 | #include <sys/types.h> | 16 | #include <sys/types.h> |
13 | 17 | ||
@@ -135,10 +139,23 @@ namespace Bu | |||
135 | bool childCoreDumped(); | 139 | bool childCoreDumped(); |
136 | 140 | ||
137 | private: | 141 | private: |
138 | int iStdIn; | 142 | class ProcData |
139 | int iStdOut; | 143 | { |
140 | int iStdErr; | 144 | public: |
141 | pid_t iPid; | 145 | ProcData(); |
146 | #ifdef WIN32 | ||
147 | void *hStdIn; | ||
148 | void *hStdOut; | ||
149 | void *hStdErr; | ||
150 | PROCESS_INFORMATION piProcInfo; | ||
151 | #else | ||
152 | int iStdIn; | ||
153 | int iStdOut; | ||
154 | int iStdErr; | ||
155 | pid_t iPid; | ||
156 | #endif | ||
157 | }; | ||
158 | ProcData pd; | ||
142 | int iProcStatus; | 159 | int iProcStatus; |
143 | bool bBlocking; | 160 | bool bBlocking; |
144 | bool bStdOutEos; | 161 | bool bStdOutEos; |