* fhandler_console.cc (fhandler_console::read): Don't even think about breaking

on interrupt if executing in a "cygwin" thread.
* fhandler_tty.cc (fhandler_pty_master::process_slave_output): Streamline,
simplify code.
* sigproc.cc (sig_send): Remove debugging statement.
This commit is contained in:
Christopher Faylor
2000-03-12 04:44:37 +00:00
parent 1e8b88023c
commit 774ea16211
4 changed files with 153 additions and 126 deletions

View File

@@ -137,8 +137,13 @@ fhandler_console::read (void *pv, size_t buflen)
DWORD nwait;
w4[0] = h;
nwait = 2;
w4[1] = signal_arrived;
if (iscygthread ())
nwait = 1;
else
{
w4[1] = signal_arrived;
nwait = 2;
}
for (;;)
{
@@ -151,8 +156,7 @@ fhandler_console::read (void *pv, size_t buflen)
case WAIT_OBJECT_0:
break;
case WAIT_OBJECT_0 + 1:
if (!iscygthread ())
set_sig_errno (EINTR);
set_sig_errno (EINTR);
return -1;
default:
__seterrno ();