[Qt-interest] Can't kill a process with QProcess::kill()

Konstantin Tokarev annulen at yandex.ru
Fri Mar 18 11:59:34 CET 2011



18.03.2011, 13:42, "Florian S." <levu at phicode.de>:
> Hi,
>
> i try to kill an asynchronously started QProcess (it's a shellscript which starts aplay) with
> p->kill(). The sound played by aplay continues, so the process is still running. However, when
> executing this script in a terminal, it can be killed by either SIGKILL (kill -9) or SIGINT (^C in
> the terminal).
>
> Do you have any idae how i can stop this process?

system("kill -9 <pid>");


-- 
Regards,
Konstantin



More information about the Qt-interest-old mailing list