bug-bash
[Top][All Lists]
Advanced

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

Re: launched by rungetty bash breaks terminal input interpretation upon


From: Dumas Patrice
Subject: Re: launched by rungetty bash breaks terminal input interpretation upon runlevel change
Date: Thu, 6 Dec 2001 18:14:14 +0100
User-agent: Mutt/1.2.5i

On Thu, Dec 06, 2001 at 11:30:35AM -0500, Paul Jarc wrote:
> Dumas Patrice <address@hidden> wrote:
> > I've read the init code related to utmp initialization, it is:
> >             /*
> >          *      Initialize /var/run/utmp (only works if /var is on
> >          *      root and mounted rw)
> >          */
> >         (void) close(open(UTMP_FILE, O_WRONLY|O_CREAT|O_TRUNC, 0644));
> 
> You can duplicate this in the proper place in your boot scripts easily
> enough:
> (umask 022; : > /var/run/utmp)

Yes, but I thought the utmp could be badly initialized, but in fact this
possibility is taken into account by init and if it appears that utmp is empty
a record corresponding with boot is put. Nice and thanks.

I did it, now utmp is working properly. The other problem is still here, 
though...

Pat



reply via email to

[Prev in Thread] Current Thread [Next in Thread]