[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]
Re: Hey, background process terminate with parent process !?
- From: Laurent CREPET <lcrepet free fr>
- To: seawolf-list redhat com
- Subject: Re: Hey, background process terminate with parent process !?
- Date: Thu, 10 May 2001 00:55:18 +0200
"Mike A. Harris" wrote:
>
> On Wed, 9 May 2001, Laurent CREPET wrote:
>
> >> [lct tealc lct]$ netscape&
> >> [1] 2775
> >> [lct tealc lct]$
> >
> >When I close gnome-terminal... bye, bye netscape.
> >Never seen that on RH 7.0.
> >
> >Another consequence of using a 2.4 kernel ?
>
> Not at all. If you run any application from any terminal, either
> in the foreground or the background, and then close the terminal,
> the terminal dies, and so does all the child processes it
> started. This is the standard behaviour that has always existed.
> In order to have a background process not terminate, you need to
> make it immune to SIGHUP by starting it with nohup.
>
> nohup netscape &
>
> Or, just create a netscape icon and click on that..
>
> Hope this helps.
>
Yeah, but I don't remember that it was working like that on RH 7.0.
It surprised me. I feel like if I've slept for a hundred of years ;-)
Yeah, I've just found the explanation: the shell. bash does'nt SIGHUP
its son. But tcsh automatically does ! On my RH 7.0 at work, I use tcsh.
At home, bash !
Thanks for you help.
Laurent.
--
Laurent CREPET -- laurent crepet free fr
[Date Prev][Date Next] [Thread Prev][Thread Next]
[Thread Index]
[Date Index]
[Author Index]