On Wednesday 25 September 2024 08:36:47 GMT-7 christ...@cullmann.io wrote: > > Since you want no handles but the standard three, would setting > > > > args->inheritHandles = false > > > > suffice? > > I tried that but for me that fails, I have no handles and unlike on > Linux > or Mac with the other code path I can no longer read any output from the > QProcess. > > I did read a bit the Windows docs and the Qt code and its seems > inheritHandles = TRUE > is required if you use the STARTF_USESTDHANDLES flag in the startup info > like Qt does.
Ah, ok. So it looks like doing what you tried to do by understanding Raymond Chen's blog is the way to go... except it didn't work. Aside from the fact that you didn't clean the thread's handle state or at least didn't include it in the code you pasted, I see no reason it shouldn't work. Maybe there's some non-obvious mistake. Implementing it directly in qprocess_win.cpp may make it work. -- Thiago Macieira - thiago.macieira (AT) intel.com Principal Engineer - Intel DCAI Platform & System Engineering
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Interest mailing list Interest@qt-project.org https://lists.qt-project.org/listinfo/interest