From: Andreas Schwab Date: Thu, 13 Oct 2005 09:29:18 +0000 (+0000) Subject: (request_sigio, unrequest_sigio): Do nothing in X-Git-Tag: emacs-pretest-22.0.90~6627 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=6e5b2385802f15d7e5cf476561bc1cd3dc1ebf8e;p=emacs.git (request_sigio, unrequest_sigio): Do nothing in non-interactive mode. --- diff --git a/src/ChangeLog b/src/ChangeLog index c6de7000e88..a6d056f579d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,8 @@ +2005-10-13 Andreas Schwab + + * sysdep.c (request_sigio, unrequest_sigio): Do nothing in + non-interactive mode. + 2005-10-12 YAMAMOTO Mitsuharu * xterm.c, w32term.c, macterm.c (note_mouse_movement): Undo last change. diff --git a/src/sysdep.c b/src/sysdep.c index f70d4b18cff..3bc72c51193 100644 --- a/src/sysdep.c +++ b/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;