OSDN Git Service

Patched Qt's QProcess class to pass the CREATE_BREAKAWAY_FROM_JOB flag when creating...
authorlordmulder <mulder2@gmx.de>
Thu, 1 Mar 2012 22:14:41 +0000 (23:14 +0100)
committerlordmulder <mulder2@gmx.de>
Thu, 1 Mar 2012 22:14:41 +0000 (23:14 +0100)
commita450862150ba8b51bf3aabea76fb3d46e678aaf1
tree44198b03724d7b534928773498d05e0e3547b341
parent2ee08c5f4be43f41f0fee9452ea6d6f347a9a237
Patched Qt's QProcess class to pass the CREATE_BREAKAWAY_FROM_JOB flag when creating a new process. This is required, because Windows (Vista and later) will add our child processes to the PCA (Program Compatibility Assistant) job object automatically! And then we cannot add the child processes to our own job object, as a process can be assigned to only one job object. With the CREATE_BREAKAWAY_FROM_JOB flag, we ensure that our child processes does NOT get added to the PCA job object automatically and we can add it to our own job object again. Unfortunately QProcess does NOT provide a way to pass process creation flags yet, so we have to patch Qt for now. Passing the CREATE_BREAKAWAY_FROM_JOB flag may not always be desired though...
etc/Patches/Qt-v4.8.0-QProcess-BreakawayFromJob.V1.diff [new file with mode: 0644]
src/Config.h
src/Tool_Abstract.cpp