parent process cannot kill child process built with windows subsystem

Normally, Qt process will terminate child process created with QProcess when the parent process exits, even you do not explicitly call the terminate or kill function of the child QProcess object. However, if you compile the child program with theĀ  “-Wl,–subsystem,windows” parameter using mingw g++, the child process won’t be killed after the parent process ends if you don’t kill the child process explicitly. Don’t know if it is a mingw bug or a Qt bug.

Posted in

Comments are closed, but trackbacks and pingbacks are open.