[Qt-interest] QProcess SIGINT
Andreas Pakulat
apaku at gmx.de
Thu Jul 23 11:08:17 CEST 2009
On 22.07.09 15:51:43, qt-interest at status.e4ward.com wrote:
> Ah! I THOUGHT I had a problem that was being caused by the program not
> dying, but I have another problem instead. The process I run with
> QProcess actually spawns a COPY of itself. So, the program QProcess
> runs dies just fine, but the copy continues running. Is there any way
> you can think of that I can kill this child process? Is QProcess aware
> of children?
QProcess has nothing to do with this, I'm not an expert in this, but
usually child processes are killed along with their parent process if the
parent dies. So I'm guessing the spawned process you see is actually not a
child anymore because it makes sure to get a child of the init process.
Thats usually done for daemon applications and those either have a way of
running <yourdaemonapp> --kill or you'll have to work with platform
specific API's to find out the process id of the process and then send it a
TERM/KILL signal (or the equivalent on non-unix platforms)
Andreas
--
You are only young once, but you can stay immature indefinitely.
More information about the Qt-interest-old
mailing list