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

Dave Smith dave at thesmithfam.org
Sun Mar 20 20:05:09 CET 2011


On Mar 18, 2011, at 4:59 AM, Konstantin Tokarev wrote:

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

You should almost never do this. So much can go wrong with this. It's almost always better to do this instead:

  ::kill(pid, SIGKILL);

--Dave


More information about the Qt-interest-old mailing list