[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-devel
Subject:    Re: KProcess::kill
From:       Andras Mantia <amantia () freemail ! hu>
Date:       2003-06-25 10:44:46
[Download RAW message or body]

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Wednesday 2003 June 25 13:27, you wrote:
> On Wednesday 25 June 2003 12:21, Andras Mantia wrote:
> > 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?
>
> Maybe setsid() would help, not sure.

Yes, I'm looking at the manpages right now (and just managed to kill the whole 
X session...).

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++X0iTQdfac6L/08RAhk3AKDdp9Rvz+k6JTZPZbL5q/wSNf00nwCdEEIU
O1LJLX5roQj8x64DL7Um+JU=
=D+ux
-----END PGP SIGNATURE-----

 
>> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic