aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorKaroly Lorentey2005-10-19 14:03:44 +0000
committerKaroly Lorentey2005-10-19 14:03:44 +0000
commit6d8cf83040cdb54a0b1d72bd6a021f9815bd4af2 (patch)
treef22e60624e5ffd52bbe19fea7809c2f5cb54704d /src/sysdep.c
parent734b679135207a8623dc460eb8d108befe080d46 (diff)
parent6507c4c73dad972eb4f6bc224c8c22de6cbeec97 (diff)
downloademacs-6d8cf83040cdb54a0b1d72bd6a021f9815bd4af2.tar.gz
emacs-6d8cf83040cdb54a0b1d72bd6a021f9815bd4af2.zip
Merged from miles@gnu.org--gnu-2005 (patch 593-595)
Patches applied: * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-593 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-594 Update from CVS * miles@gnu.org--gnu-2005/emacs--cvs-trunk--0--patch-595 Update from CVS git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-425
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c25
1 files changed, 17 insertions, 8 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index c9464cd111f..0cf6ecb1f36 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -1032,6 +1032,7 @@ reset_sigio (fd)
1032 1032
1033#ifdef FASYNC /* F_SETFL does not imply existence of FASYNC */ 1033#ifdef FASYNC /* F_SETFL does not imply existence of FASYNC */
1034/* XXX Uhm, FASYNC is not used anymore here. */ 1034/* XXX Uhm, FASYNC is not used anymore here. */
1035/* XXX Yeah, but you need it for SIGIO, don't you? */
1035 1036
1036void 1037void
1037request_sigio () 1038request_sigio ()
@@ -1039,7 +1040,7 @@ request_sigio ()
1039 /* XXX read_socket_hook is not global anymore. Is blocking SIGIO 1040 /* XXX read_socket_hook is not global anymore. Is blocking SIGIO
1040 bad under X? */ 1041 bad under X? */
1041#if 0 1042#if 0
1042 if (read_socket_hook) 1043 if (noninteractive || read_socket_hook)
1043 return; 1044 return;
1044#endif 1045#endif
1045 1046
@@ -1057,7 +1058,7 @@ unrequest_sigio (void)
1057 /* XXX read_socket_hook is not global anymore. Is blocking SIGIO 1058 /* XXX read_socket_hook is not global anymore. Is blocking SIGIO
1058 bad under X? */ 1059 bad under X? */
1059#if 0 1060#if 0
1060 if (read_socket_hook) 1061 if (noninteractive || read_socket_hook)
1061 return; 1062 return;
1062#endif 1063#endif
1063 1064
@@ -1076,7 +1077,7 @@ request_sigio ()
1076{ 1077{
1077 int on = 1; 1078 int on = 1;
1078 1079
1079 if (read_socket_hook) 1080 if (noninteractive || read_socket_hook)
1080 return; 1081 return;
1081 1082
1082 /* XXX CURTTY() is bogus here. */ 1083 /* XXX CURTTY() is bogus here. */
@@ -1089,7 +1090,7 @@ unrequest_sigio ()
1089{ 1090{
1090 int off = 0; 1091 int off = 0;
1091 1092
1092 if (read_socket_hook) 1093 if (noninteractive || read_socket_hook)
1093 return; 1094 return;
1094 1095
1095 /* XXX CURTTY() is bogus here. */ 1096 /* XXX CURTTY() is bogus here. */
@@ -1109,7 +1110,7 @@ request_sigio ()
1109 int on = 1; 1110 int on = 1;
1110 sigset_t st; 1111 sigset_t st;
1111 1112
1112 if (read_socket_hook) 1113 if (noninteractive || read_socket_hook)
1113 return; 1114 return;
1114 1115
1115 sigemptyset (&st); 1116 sigemptyset (&st);
@@ -1124,7 +1125,7 @@ unrequest_sigio ()
1124{ 1125{
1125 int off = 0; 1126 int off = 0;
1126 1127
1127 if (read_socket_hook) 1128 if (noninteractive || read_socket_hook)
1128 return; 1129 return;
1129 1130
1130 ioctl (0, FIOASYNC, &off); /* XXX This fails for multiple ttys. */ 1131 ioctl (0, FIOASYNC, &off); /* XXX This fails for multiple ttys. */
@@ -1137,7 +1138,7 @@ unrequest_sigio ()
1137void 1138void
1138request_sigio () 1139request_sigio ()
1139{ 1140{
1140 if (read_socket_hook) 1141 if (noninteractive || read_socket_hook)
1141 return; 1142 return;
1142 1143
1143 croak ("request_sigio"); 1144 croak ("request_sigio");
@@ -1146,7 +1147,7 @@ request_sigio ()
1146void 1147void
1147unrequest_sigio () 1148unrequest_sigio ()
1148{ 1149{
1149 if (read_socket_hook) 1150 if (noninteractive || read_socket_hook)
1150 return; 1151 return;
1151 1152
1152 croak ("unrequest_sigio"); 1153 croak ("unrequest_sigio");
@@ -2335,12 +2336,16 @@ reset_sigio (fd)
2335void 2336void
2336request_sigio () 2337request_sigio ()
2337{ 2338{
2339 if (noninteractive)
2340 return;
2338 croak ("request sigio"); 2341 croak ("request sigio");
2339} 2342}
2340 2343
2341void 2344void
2342unrequest_sigio () 2345unrequest_sigio ()
2343{ 2346{
2347 if (noninteractive)
2348 return;
2344 croak ("unrequest sigio"); 2349 croak ("unrequest sigio");
2345} 2350}
2346 2351
@@ -2884,6 +2889,8 @@ reset_sigio (fd)
2884void 2889void
2885request_sigio () 2890request_sigio ()
2886{ 2891{
2892 if (noninteractive)
2893 return;
2887 sigrelse (SIGTINT); 2894 sigrelse (SIGTINT);
2888 2895
2889 interrupts_deferred = 0; 2896 interrupts_deferred = 0;
@@ -2892,6 +2899,8 @@ request_sigio ()
2892void 2899void
2893unrequest_sigio () 2900unrequest_sigio ()
2894{ 2901{
2902 if (noninteractive)
2903 return;
2895 sighold (SIGTINT); 2904 sighold (SIGTINT);
2896 2905
2897 interrupts_deferred = 1; 2906 interrupts_deferred = 1;