This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: DOS/Windows-specific code: inflow.c
On Tue, May 08, 2001 at 09:15:59PM +0300, Eli Zaretskii wrote:
>> > #ifdef USE_O_NOCTTY
>> > tty = open (inferior_thisrun_terminal, O_RDWR | O_NOCTTY);
>> > #else
>> > tty = open (inferior_thisrun_terminal, O_RDWR);
>> > #endif
>> > if (tty == -1)
>> > {
>> > print_sys_errmsg (inferior_thisrun_terminal, errno);
>> > _exit (1);
>> > }
>> >
>> >This code assumes too many Posix features. Should we define
>> >NO_NEW_TTY?
>>
>> Actually, I think something should define O_NOCTTY to 0.
>
>Are you sure it would be enough? Is inferior_thisrun_terminal defined
>on all platforms?
Judging by the ifdef, yes. It seems like either part of the ifdef
uses inferior_thisrun_terminal.
cgf