Here the only point I would like to mention is:

control terminal => shell

Shell is the parent of all processes originated under
it. If you don't specify nohup, shell gets killed when
you logout and all its children die. Makes sense?

Regards,
Naresh


--- "A. Madhusudan  , Gurgaon"
<[EMAIL PROTECTED]> wrote:
> hi,
> well i am not pretty sure about this myself, but i
> think this is how it
> works.
> Once u log into Linux (or UNIX), all ur
> programs(processes) are
> associated with ur control terminal. Now if this
> contol terminal gets
> killed then all the process associated with this
> control terminal also
> get terminated automatically, which was what was
> happening to your
> background process when u logged out.
> The nohup option allows a process to run even after
> the control terminal
> with which it is associated has been terminated. So
> the background
> process remains even after you logout.
> Hope this helps..ANd if someone has greater insight
> to this. Well I am
> waiting.
> Regds
> A.Madhusudan
>  
> 
> -----Original Message-----
> From: Vikas Gandhi [mailto:VGandhi@;quark.co.in]
> Sent: Tuesday, October 22, 2002 2:33 PM
> To: multiple recipients of
> Subject: [ilugd]: Background process killed
> 
> 
> 
> Hi All
>   I am facing a strange situation. I running a
> process witn
> &(background) and gets killed when I close the
> session. However it does
> not happen with other processes. The thing was
> rectified when I ran the
> process with nohup option. 
> Can someone explain this behaviour.
>  
> I have some questions.....
> 1. Whats the diff between running a process in
> background and running a
> process with nohup in background?
> 2. Does a process should get killed by itself
> whenever I logout out of
> this session or not?
>  
>  
> Thx
> Vikas
> 
> 


=====
-- Naresh

__________________________________________________
Do you Yahoo!?
Y! Web Hosting - Let the expert host your web site
http://webhosting.yahoo.com/

          ================================================
To unsubscribe, send email to [EMAIL PROTECTED] with unsubscribe in subject 
header. Check archives at http://www.mail-archive.com/ilugd%40wpaa.org

Reply via email to