* select.cc (peek_pipe): Deal with pending newline in pty_master.
This commit is contained in:
parent
4c35f9f01f
commit
c5d03f3dca
|
@ -1,3 +1,7 @@
|
||||||
|
Wed Nov 8 21:00:31 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* select.cc (peek_pipe): Deal with pending newline in pty_master.
|
||||||
|
|
||||||
Wed Nov 8 15:35:32 2000 Christopher Faylor <cgf@cygnus.com>
|
Wed Nov 8 15:35:32 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
* environ.cc (_addenv): malloc space for setenv if cygwin1.dll is used
|
* environ.cc (_addenv): malloc space for setenv if cygwin1.dll is used
|
||||||
|
|
|
@ -418,12 +418,23 @@ peek_pipe (select_record *s, int ignra)
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!ignra && fh->get_device () != FH_PTYM && fh->get_device () != FH_TTYM &&
|
switch (fh->get_device ())
|
||||||
fh->get_readahead_valid ())
|
|
||||||
{
|
{
|
||||||
select_printf ("readahead");
|
case FH_PTYM:
|
||||||
gotone = s->read_ready = 1;
|
case FH_TTYM:
|
||||||
goto out;
|
if (((fhandler_pty_master *)fh)->need_nl)
|
||||||
|
{
|
||||||
|
gotone = s->read_ready = 1;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
|
break;
|
||||||
|
default:
|
||||||
|
if (!ignra && fh->get_readahead_valid ())
|
||||||
|
{
|
||||||
|
select_printf ("readahead");
|
||||||
|
gotone = s->read_ready = 1;
|
||||||
|
goto out;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue