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.

Did you like this?
Tip admin with Cryptocurrency

Donate Bitcoin to admin

Scan to Donate Bitcoin to admin
Scan the QR code or copy the address below into your wallet to send some bitcoin:

Donate Bitcoin Cash to admin

Scan to Donate Bitcoin Cash to admin
Scan the QR code or copy the address below into your wallet to send bitcoin:

Donate Ethereum to admin

Scan to Donate Ethereum to admin
Scan the QR code or copy the address below into your wallet to send some Ether:

Donate Litecoin to admin

Scan to Donate Litecoin to admin
Scan the QR code or copy the address below into your wallet to send some Litecoin:

Donate Monero to admin

Scan to Donate Monero to admin
Scan the QR code or copy the address below into your wallet to send some Monero:

Donate ZCash to admin

Scan to Donate ZCash to admin
Scan the QR code or copy the address below into your wallet to send some ZCash:
Posted in

Comments are closed, but trackbacks and pingbacks are open.