Hi Nidhi,

On Wed, Jan 28, 2009 at 5:34 PM, nidhi mittal <nidhimitta...@gmail.com> wrote:
> hi all
>
> as i have read in linux that
> a parent process P if creates a child process C then
>
> "even if parent dies child is not bound to die it stays executes and becomes
> child of init process."
>

Thats true.

> but then why in shell terminal if i execute a process and close the shell
> ..all processes inside shell
> are killed.
>
Refer the book Advanced unix programming by Stevens.
Just see through the flow of execution when you execute a command.
Similarly when you run an executable, it binds itself to a terminal
and hence when you close all the terminal, everything will be gone.

Not very sure though.

> what i guess is may be evenHandler for windowClosing of terminal explicitly
> sends kill to all processes
> which are children..


>
> is it pl suggest
>
> --
> Thanks & Regards
> Nidhi
>



-- 
Regards,
Sandeep.





        
"To learn is to change. Education is a process that changes the learner."

--
To unsubscribe from this list: send an email with
"unsubscribe kernelnewbies" to ecar...@nl.linux.org
Please read the FAQ at http://kernelnewbies.org/FAQ

Reply via email to