init runs with console as control terminal?

1999-11-17 Thread Luoqi Chen
Since sometime last month, rc5des failed to start from my rc.local. I did a little investigation and it turned out that rc5des was started but later terminated by a SIGHUP. During its brief lifetime, /dev/console was its control terminal. Does anyone know what was going on? -lq To Unsubscribe:

Re: init runs with console as control terminal?

1999-01-17 Thread Luoqi Chen
> Bug the authors to fix it? daemon(3) is provided for a reason! > > Here's my version of a simple daemonizing program Neither > TIOCNOTTY nor setpgid() is sufficient to detach from a terminal > session in a POSIX environment; setsid() is required. daemon(3) does > a nice job of encapsulat

Re: init runs with console as control terminal?

1999-01-16 Thread Garrett Wollman
< said: > Hmm, good point. So I still need to find a way to start up rc5des, it seems > that rc5des installs a SIGHUP handler and therefore nohup is > useless. Bug the authors to fix it? daemon(3) is provided for a reason! Here's my version of a simple daemonizing program Neither TIOCNOTT

Re: init runs with console as control terminal?

1999-01-16 Thread Matthew Dillon
: :> no control terminal == no signals == no ^C'ing hung programs during :> startup (for example, when you need to boot a machine without a working :> network and sendmail and other programs stop the boot sequence in its :> tracks trying to do DNS lookups). :> :>

Re: init runs with console as control terminal?

1999-01-16 Thread Luoqi Chen
> no control terminal == no signals == no ^C'ing hung programs during > startup (for example, when you need to boot a machine without a working > network and sendmail and other programs stop the boot sequence in its > tracks trying to do DNS lookups). > >

Re: init runs with console as control terminal?

1999-01-16 Thread Matthew Dillon
: :> /etc/rc's shell is a controlling process with control terminal /etc/console, :> so /dev/console is supposed to be revoked when /etc/rc's shell exits. :> :Control terminal is for job control, and we don't need job control during :/etc/rc's execution, so why don't we change init not to acquir

Re: init runs with console as control terminal?

1999-01-16 Thread Luoqi Chen
> /etc/rc's shell is a controlling process with control terminal /etc/console, > so /dev/console is supposed to be revoked when /etc/rc's shell exits. > Control terminal is for job control, and we don't need job control during /etc/rc's execution, so why don't we change init not to acquire a cont

Re: init runs with console as control terminal?

1999-01-16 Thread Garrett Wollman
< said: > root cron 2180 - -none- > root cron 2181 - -none- > root cron 2182 - -none- > root adjkerntz 400 - -none- > root adjkerntz 401 -

Re: init runs with console as control terminal?

1999-01-16 Thread Bruce Evans
On Thu, 18 Nov 1999, Peter Wemm wrote: > Luoqi Chen wrote: > > Since sometime last month, rc5des failed to start from my rc.local. I did > > a little investigation and it turned out that rc5des was started but later > > terminated by a SIGHUP. During its brief lifetime, /dev/console was its > > c

Re: init runs with console as control terminal?

1999-01-16 Thread Peter Wemm
Luoqi Chen wrote: > Since sometime last month, rc5des failed to start from my rc.local. I did > a little investigation and it turned out that rc5des was started but later > terminated by a SIGHUP. During its brief lifetime, /dev/console was its > control terminal. Does anyone know what was going o