[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 12:02:21
[Download RAW message or body]

-----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 <<

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

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