From kde-devel Wed Jun 25 10:21:23 2003 From: Andras Mantia Date: Wed, 25 Jun 2003 10:21:23 +0000 To: kde-devel Subject: Re: KProcess::kill X-MARC-Message: https://marc.info/?l=kde-devel&m=105653667610179 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 2003 June 25 12:54, Waldo Bastian wrote: > On Wednesday 25 June 2003 07:50, Andras Mantia wrote: > > Hi, > > > > I've noticed that if I try to kill a process started with KProcess, it > > won't be killed, altough the kill method returns true and the process > > emits the processExited signal. I've tried both with the default SIGTERM > > and the SIGKILL signal. > > But as it's a GUI application, I still see in the taskbar and can use it. > > Is this a normal behavior? Can I kill somehow for real? > > This is on CVS HEAD. > > What does ps -aux has to say about it? Which pid does KProcess try to kill? I've added some debug output to find out the pid and I realized that KProcess kills the correct process. Why I saw the misbehavior was that the executable I have started with KProcess was a perl script which launched another executable (the one with a GUI). The script is killed, but the GUI app was still running. Should the child process also disappear? Any idea how can I kill also that one? Andras > > Cheers, > Waldo - -- Quanta Plus developer - http://quanta.sourceforge.net K Desktop Environment - http://www.kde.org -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.1 (GNU/Linux) iD8DBQE++XejTQdfac6L/08RAk+xAKCFrRpKCzu8rh0R2gJ8/BA9DIUhFgCgkzF4 pOM5Lkt63r/3Rj4oEDTA3Vg= =ndif -----END PGP SIGNATURE----- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<