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

List:       kde-devel
Subject:    Re: KProcess
From:       Johnny Andersson <johnny () as10-2-6 ! hn ! g ! bonet ! se>
Date:       2001-10-06 15:21:37
[Download RAW message or body]

On Saturday 06 October 2001 17.03, Uwe Thiem wrote:

> > enabled), the started program is a child of my main program, but when my
> > main program exits, the child process gets adopted by init (pid 1) and
> > continues to run? I want the child to die when my main program does.
>
> It is the normal Unix behaviour. If a child process gets orphaned the
> grandparent process becomes its parent. In most cases that is init.
>
> If you delete the KProcess instance in your parent process before it dies
> that should do it.

So when killing, for example, an xterm, xterm catches the kill signal 
itself and explicitly kills all its child processes? I always thought that 
killing a program automatically meant killing all processes started from it.

thanks for the answer though, it does make sense. ;)

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