Re: killing a terminal window kills all child processes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi Nidhi,

On Wed, Jan 28, 2009 at 5:34 PM, nidhi mittal <nidhimittal19@xxxxxxxxx> 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 ecartis@xxxxxxxxxxxx
Please read the FAQ at http://kernelnewbies.org/FAQ


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux