* autoload.cc (LoadDLLinitfunc): Remove debugging statement.
* exceptions.cc (sig_handle_tty_stop): Move setting of PID_STOPPED to earlier in interrupt. ((interrupt_setup): i.e., here. (sig_handle): Don't queue multiple SIGSTOPS. * fhandler.h (bg_check_types): Enumerate return value of bg_check for clarity. * signal.cc (kill_pgrp): Minor cleanup. * fhandler_termios.cc (fhandler_termios::bg_check): Use enumerated type for function return. Don't raise signal if a signal is already queued. * fhandler_console.cc (fhandler_console::read): Use enumerated return type for bg_check. * select.cc: Ditto, throughout. * read.cc: Ditto, throughout. * termios.cc: Ditto, throughout. (_read): YA interrupt detect simplification. * wait.cc (wait4): Ditto.
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
/* termios.cc: termios for WIN32.
|
||||
|
||||
Copyright 1996, 1997, 1998, 2000 Cygnus Solutions.
|
||||
Copyright 1996, 1997, 1998, 2000, 2001 Red Hat, Inc.
|
||||
|
||||
Written by Doug Evans and Steve Chamberlain of Cygnus Support
|
||||
dje@cygnus.com, sac@cygnus.com
|
||||
@@ -40,7 +40,7 @@ tcsendbreak (int fd, int duration)
|
||||
set_errno (ENOTTY);
|
||||
else
|
||||
{
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > 0)
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > bg_eof)
|
||||
res = fh->tcsendbreak (duration);
|
||||
}
|
||||
|
||||
@@ -70,7 +70,7 @@ tcdrain (int fd)
|
||||
set_errno (ENOTTY);
|
||||
else
|
||||
{
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > 0)
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > bg_eof)
|
||||
res = fh->tcdrain ();
|
||||
}
|
||||
|
||||
@@ -98,7 +98,7 @@ tcflush (int fd, int queue)
|
||||
set_errno (ENOTTY);
|
||||
else
|
||||
{
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > 0)
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > bg_eof)
|
||||
res = fh->tcflush (queue);
|
||||
}
|
||||
|
||||
@@ -126,7 +126,7 @@ tcflow (int fd, int action)
|
||||
set_errno (ENOTTY);
|
||||
else
|
||||
{
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > 0)
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > bg_eof)
|
||||
res = fh->tcflow (action);
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ tcsetattr (int fd, int a, const struct termios *t)
|
||||
set_errno (ENOTTY);
|
||||
else
|
||||
{
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > 0)
|
||||
if ((res = fh->bg_check (-SIGTTOU)) > bg_eof)
|
||||
res = fh->tcsetattr (a, t);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user