Mercurial > emacs
changeset 66065:6345e0814501
(request_sigio, unrequest_sigio): Do nothing in
non-interactive mode.
author | Andreas Schwab <schwab@suse.de> |
---|---|
date | Thu, 13 Oct 2005 09:29:01 +0000 |
parents | 0a9bc564bab4 |
children | 367b69035561 |
files | src/sysdep.c |
diffstat | 1 files changed, 16 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/src/sysdep.c Thu Oct 13 06:07:43 2005 +0000 +++ b/src/sysdep.c Thu Oct 13 09:29:01 2005 +0000 @@ -1012,7 +1012,7 @@ void request_sigio () { - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; #ifdef SIGWINCH @@ -1026,7 +1026,7 @@ void unrequest_sigio () { - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; #ifdef SIGWINCH @@ -1044,7 +1044,7 @@ { int on = 1; - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; ioctl (input_fd, FIOASYNC, &on); @@ -1056,7 +1056,7 @@ { int off = 0; - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; ioctl (input_fd, FIOASYNC, &off); @@ -1075,7 +1075,7 @@ int on = 1; sigset_t st; - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; sigemptyset (&st); @@ -1090,7 +1090,7 @@ { int off = 0; - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; ioctl (input_fd, FIOASYNC, &off); @@ -1103,7 +1103,7 @@ void request_sigio () { - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; croak ("request_sigio"); @@ -1112,7 +1112,7 @@ void unrequest_sigio () { - if (read_socket_hook) + if (noninteractive || read_socket_hook) return; croak ("unrequest_sigio"); @@ -2235,12 +2235,16 @@ void request_sigio () { + if (noninteractive) + return; croak ("request sigio"); } void unrequest_sigio () { + if (noninteractive) + return; croak ("unrequest sigio"); } @@ -2775,6 +2779,8 @@ void request_sigio () { + if (noninteractive) + return; sigrelse (SIGTINT); interrupts_deferred = 0; @@ -2783,6 +2789,8 @@ void unrequest_sigio () { + if (noninteractive) + return; sighold (SIGTINT); interrupts_deferred = 1;