Date: Wed, 15 Apr 1998 19:30:55 +0300 (IDT) From: Eli Zaretskii To: HANRIGOU Philippe cc: DJGPP , Martin Stromberg Subject: Re: Problem with bash In-Reply-To: <3534E5C1.6395@CGSTE.MQ> Message-ID: MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Precedence: bulk On Wed, 15 Apr 1998, HANRIGOU Philippe wrote: > bash seems to be blocked on its first "read" call in "rl_getc" function > (file "lib/readline/readline.c"). More precisely in the line: > > result = read (fileno (stream), &c, sizeof (unsigned char)); It figures. IIRC Bash uses the termios functions to read console input. The DJGPP implementation of termios (written AFIK by Daisuke Aoyama and used almost exclusively by Bash) hooks calls to the `read' function and makes the library call `__libc_termios_read' instead. See the library sources on src/libc/posix/unistd/read.c and src/libc/posix/termios/tminit.c, for the gory details. It seems that the problem is somewhere inside `__libc_termios_read' or its subroutines. So I suggest to get the sources of the above two modules from djlsr201.zip, compile them with -g, link Bash with them, and step inside `read' and `__libc_termios_hook' with GDB. I hope you will be at least able to see what part there hangs on you, and we could then scratch our heads to try to figure out why.