bug-bash
[Top][All Lists]
Advanced

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

Re: Bash auto-logout truncates "timed out waiting for input: auto-logout


From: Mike Frysinger
Subject: Re: Bash auto-logout truncates "timed out waiting for input: auto-logout " string
Date: Fri, 13 Apr 2007 12:40:23 -0400
User-agent: KMail/1.9.6

On Friday 13 April 2007, Chet Ramey wrote:
> West Stephen-QSW000 wrote:
> > Configuration Information [Automatically generated, do not change]:
> > Machine: powerpc
> > OS: linux-gnuspe
> > Compiler: ppc_85xx-gcc
> > Compilation CFLAGS:  -DPROGRAM='bash' -DCONF_HOSTTYPE='powerpc'
> > -DCONF_OSTYPE='linux-gnuspe'
> > -DCONF_MACHTYPE='powerpc-montavista-linux-gnuspe'
> > -DCONF_VENDOR='montavista' -DSHELL
> > -DHAVE_CONFIG_H  -I.  -I.. -I../include -I../lib  -O2
> > uname output: Linux DMICTRL 2.6.10_mvl402-UBS-DMICTRLKERNEL-REL-001 NONE
> > ppc GNU
> > /Linux
> > Machine Type: powerpc-montavista-linux-gnuspe
> >
> > Bash Version: 2.05b
> > Patch Level: 0
> > Release Status: release
> >
> > Description:
> >         I am using a custom board with a serial console running at a
> > baud rate of 115200.  I have a TMOUT value set, and when that value is
> > reached, the console auto-logout happens.  Often, the auto-logout string
> > printed by bash gets truncated.  It should read "timed out waiting for
> > input: auto-logout", but instead it reads "timed out waiting f".  I do
> > not see this issue if I am connected to the board over a faster
> > interface such as when I ssh to the board over an ethernet interface.
>
> You might try adding `fflush(stdout);' right after the printf.  Look in
> eval.c:alrm_catcher().

either that or a tcdrain(STDOUT_FILENO) ...
-mike

Attachment: pgp2bzNIHMOCf.pgp
Description: PGP signature


reply via email to

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