This is the mail archive of the
libc-hacker@cygnus.com
mailing list for the glibc project.
Re: gdb not setting controlling terminal (+patch) (fwd)
- To: hjl@lucon.org (H.J. Lu)
- Subject: Re: gdb not setting controlling terminal (+patch) (fwd)
- From: Jim Blandy <jimb@cygnus.com>
- Date: 05 May 1999 15:08:26 -0500
- Cc: gdb@sourceware.cygnus.com (GDB), libc-hacker@cygnus.com (GNU C Library)
- References: <19990505185836.1BC5657B7@ocean.lucon.org>
This bug report is my responsibility. I'm working my way through
them, don't worry.
> What happened to this bug report and patch? I don't know for sure
> if it is a gdb or glibc bug.
>
> The problem is with gdb's 'tty' command. The gdb manual reads:
>
> [...] It also resets the controlling terminal for the child
> process, for future `run' commands. For example,
>
> tty /dev/ttyb
>
> directs that processes started with subsequent `run' commands default
> to do input and output on the terminal `/dev/ttyb' and have that as
> their controlling terminal.
>
> However on this system 'tty' has no effect on the controlling terminal.
> The controlling terminal of the child appears the same as that of gdb.
> See the original report below for a resulting real-life problem
> (a program under gdb tries to read from /dev/tty and fails with SIGTTIN).