# HG changeset patch # User Andreas Schwab # Date 1129195741 0 # Node ID 6345e0814501ae678af9433e0eea10e962218148 # Parent 0a9bc564bab47739f6fde08aa1bffc8de382d821 (request_sigio, unrequest_sigio): Do nothing in non-interactive mode. diff -r 0a9bc564bab4 -r 6345e0814501 src/sysdep.c --- 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;