Changeset 72 for trunk/src/corelib/io/qprocess_p.h
- Timestamp:
- Jul 9, 2009, 1:43:12 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified trunk/src/corelib/io/qprocess_p.h ¶
r71 r72 59 59 #include "private/qiodevice_p.h" 60 60 61 #if defined(Q_OS_WIN)61 #ifdef Q_OS_WIN 62 62 #include "QtCore/qt_windows.h" 63 63 typedef HANDLE Q_PIPE; 64 64 #define INVALID_Q_PIPE INVALID_HANDLE_VALUE 65 #elif defined(Q_OS_OS2)66 #include "QtCore/qt_os2.h"67 #define HP_NULL HPIPE(~0)68 #define HF_NULL HFILE(~0)69 65 #else 70 66 typedef int Q_PIPE; … … 97 93 Channel() : process(0), notifier(0), type(Normal), closed(false), append(false) 98 94 { 99 #if !defined(Q_OS_OS2)100 95 pipe[0] = INVALID_Q_PIPE; 101 96 pipe[1] = INVALID_Q_PIPE; 102 #else103 pipe = HP_NULL;104 file = HF_NULL;105 #endif106 97 } 107 98 … … 132 123 QString file; 133 124 QProcessPrivate *process; 134 #if !defined(Q_OS_OS2)135 125 QSocketNotifier *notifier; 136 126 Q_PIPE pipe[2]; 137 #else138 HPIPE pipe;139 HFILE file;140 #endif141 127 142 128 unsigned type : 2; … … 182 168 QRingBuffer writeBuffer; 183 169 184 #if !defined(Q_OS_OS2)185 170 Q_PIPE childStartedPipe[2]; 186 171 Q_PIPE deathPipe[2]; … … 194 179 QWindowsPipeWriter *pipeWriter; 195 180 QWinEventNotifier *processFinishedNotifier; 196 #else197 void destroyPipe(Channel &channel);198 #endif199 181 200 182 void startProcess(); … … 206 188 void killProcess(); 207 189 void findExitCode(); 208 #if def Q_OS_UNIX190 #if defined(Q_OS_UNIX) || defined(Q_OS_OS2) 209 191 bool waitForDeadChild(); 210 192 #endif
Note:
See TracChangeset
for help on using the changeset viewer.