From kde-devel Wed Jun 25 12:02:21 2003 From: Andras Mantia Date: Wed, 25 Jun 2003 12:02:21 +0000 To: kde-devel Subject: Re: KProcess::kill X-MARC-Message: https://marc.info/?l=kde-devel&m=105654276215706 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Wednesday 2003 June 25 14:24, Oswald Buddenhagen wrote: > On Wed, Jun 25, 2003 at 01:53:50PM +0300, Andras Mantia wrote: > > Problem solved: > > I call "::setpgid(proc->pid(), 0)" after the process has started > > that's racy. if the child fork()s before you setpgid() it, the > grandchild will be still in your process group. you have to setpgid() in > the child process. > note also, that if the child will block if it does tty output and the > fd is still connected to a terminal. In this case I need support from KProcess... But what should I do for KDE 3.1. x? > > and kill it with "::kill(-proc->pid(), SIGKILL)". > > yep ... but are you sure that it must be a KILL? No, probably a SIGTERM is enough. Andras > > greetings - -- 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++Y9NTQdfac6L/08RAk/QAJwPfEIpW5wjA+s9S+UaMHuv8OhslwCfedli DiFVR/2Xib1qawHIaP+QhfI= =g+VN -----END PGP SIGNATURE----- >> Visit http://mail.kde.org/mailman/listinfo/kde-devel#unsub to unsubscribe <<