mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-04-19 04:21:45 -07:00
(request_sigio, unrequest_sigio): Do nothing in
non-interactive mode.
This commit is contained in:
parent
79a5708286
commit
6e5b238580
2 changed files with 21 additions and 8 deletions
|
|
@ -1,3 +1,8 @@
|
|||
2005-10-13 Andreas Schwab <schwab@suse.de>
|
||||
|
||||
* sysdep.c (request_sigio, unrequest_sigio): Do nothing in
|
||||
non-interactive mode.
|
||||
|
||||
2005-10-12 YAMAMOTO Mitsuharu <mituharu@math.s.chiba-u.ac.jp>
|
||||
|
||||
* xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change.
|
||||
|
|
|
|||
24
src/sysdep.c
24
src/sysdep.c
|
|
@ -1012,7 +1012,7 @@ reset_sigio ()
|
|||
void
|
||||
request_sigio ()
|
||||
{
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
#ifdef SIGWINCH
|
||||
|
|
@ -1026,7 +1026,7 @@ request_sigio ()
|
|||
void
|
||||
unrequest_sigio ()
|
||||
{
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
#ifdef SIGWINCH
|
||||
|
|
@ -1044,7 +1044,7 @@ request_sigio ()
|
|||
{
|
||||
int on = 1;
|
||||
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
ioctl (input_fd, FIOASYNC, &on);
|
||||
|
|
@ -1056,7 +1056,7 @@ unrequest_sigio ()
|
|||
{
|
||||
int off = 0;
|
||||
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
ioctl (input_fd, FIOASYNC, &off);
|
||||
|
|
@ -1075,7 +1075,7 @@ request_sigio ()
|
|||
int on = 1;
|
||||
sigset_t st;
|
||||
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
sigemptyset (&st);
|
||||
|
|
@ -1090,7 +1090,7 @@ unrequest_sigio ()
|
|||
{
|
||||
int off = 0;
|
||||
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
ioctl (input_fd, FIOASYNC, &off);
|
||||
|
|
@ -1103,7 +1103,7 @@ unrequest_sigio ()
|
|||
void
|
||||
request_sigio ()
|
||||
{
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
croak ("request_sigio");
|
||||
|
|
@ -1112,7 +1112,7 @@ request_sigio ()
|
|||
void
|
||||
unrequest_sigio ()
|
||||
{
|
||||
if (read_socket_hook)
|
||||
if (noninteractive || read_socket_hook)
|
||||
return;
|
||||
|
||||
croak ("unrequest_sigio");
|
||||
|
|
@ -2235,12 +2235,16 @@ reset_sigio ()
|
|||
void
|
||||
request_sigio ()
|
||||
{
|
||||
if (noninteractive)
|
||||
return;
|
||||
croak ("request sigio");
|
||||
}
|
||||
|
||||
void
|
||||
unrequest_sigio ()
|
||||
{
|
||||
if (noninteractive)
|
||||
return;
|
||||
croak ("unrequest sigio");
|
||||
}
|
||||
|
||||
|
|
@ -2775,6 +2779,8 @@ reset_sigio ()
|
|||
void
|
||||
request_sigio ()
|
||||
{
|
||||
if (noninteractive)
|
||||
return;
|
||||
sigrelse (SIGTINT);
|
||||
|
||||
interrupts_deferred = 0;
|
||||
|
|
@ -2783,6 +2789,8 @@ request_sigio ()
|
|||
void
|
||||
unrequest_sigio ()
|
||||
{
|
||||
if (noninteractive)
|
||||
return;
|
||||
sighold (SIGTINT);
|
||||
|
||||
interrupts_deferred = 1;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue