- Timestamp:
- Mar 18, 2010, 3:42:18 PM (16 years ago)
- File:
-
- 1 edited
-
trunk/src/corelib/io/qprocess_os2.cpp (modified) (36 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/corelib/io/qprocess_os2.cpp
r690 r699 43 43 44 44 //#define QPROCESS_DEBUG 45 #include "qdebug.h"46 45 47 46 #if defined(__INNOTEK_LIBC__) … … 52 51 53 52 #if defined QPROCESS_DEBUG 53 54 54 #include "qstring.h" 55 55 #include <ctype.h> … … 86 86 return out; 87 87 } 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 88 103 QT_END_NAMESPACE 104 105 106 107 89 108 #endif 90 109 … … 246 265 USHORT QProcessManager::addProcess(QProcess *process) 247 266 { 248 #if defined (QPROCESS_DEBUG) 249 qDebug("QProcessManager::addProcess(%p)", process); 250 #endif 267 DEBUG(("QProcessManager::addProcess(%p)", process)); 251 268 252 269 QMutexLocker locker(&mutex); … … 317 334 QProcess *process = instance->processes[procKey]; 318 335 319 #if defined (QPROCESS_DEBUG) 320 qDebug("QProcessManager::removeProcess(%p)", process); 321 #endif 336 DEBUG(("QProcessManager::removeProcess(%p)", process)); 322 337 323 338 // to guarantee that the given procKey may be reused, we must close all … … 339 354 : refcnt(0), finish(false), eventSem(NULLHANDLE), sa_old_sigchld_handler(0) 340 355 { 341 #if defined (QPROCESS_DEBUG) 342 qDebug() << "QProcessManager::QProcessManager()"; 343 #endif 356 DEBUG(() << "QProcessManager::QProcessManager()"); 344 357 345 358 APIRET rc = DosCreateEventSem(NULL, &eventSem, … … 354 367 QProcessManager::~QProcessManager() 355 368 { 356 #if defined (QPROCESS_DEBUG) 357 qDebug() << "QProcessManager::~QProcessManager()"; 358 #endif 369 DEBUG(() << "QProcessManager::~QProcessManager()"); 359 370 360 371 Q_ASSERT(!refcnt); … … 393 404 void QProcessManager::run() 394 405 { 395 #if defined (QPROCESS_DEBUG) 396 qDebug() << "QProcessManager::run() BEGIN"; 397 #endif 406 DEBUG(() << "QProcessManager::run() BEGIN"); 398 407 399 408 // Note: the rationale behind using a worker thread so far is that … … 419 428 420 429 if (instance->deathFlag.testAndSetRelaxed(1, 0)) { 421 #if defined (QPROCESS_DEBUG) 422 qDebug() << "QProcessManager::run(): child death signaled"; 423 #endif 430 DEBUG(() << "QProcessManager::run(): child death signaled"); 424 431 foreach (QProcess *proc, processes) { 425 432 QProcessPrivate::WaitMode mode = (QProcessPrivate::WaitMode) …
