aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKaroly Lorentey2003-12-30 17:51:52 +0000
committerKaroly Lorentey2003-12-30 17:51:52 +0000
commit9d9f18127ffc1bc26358a5d48917ef4e4bafbddc (patch)
tree93d4dd7a09a58153d24ae26641197944b9c55365
parent22de1e79e7773ca95c6a6dddcdd408f3a3b7d5b2 (diff)
downloademacs-9d9f18127ffc1bc26358a5d48917ef4e4bafbddc.tar.gz
emacs-9d9f18127ffc1bc26358a5d48917ef4e4bafbddc.zip
Undo patch-23. I need a coffee.
src/sysdep.c (sys_select): Restore previous #ifdef. git-archimport-id: lorentey@elte.hu--2004/emacs--multi-tty--0--patch-26
-rw-r--r--README.multi-tty18
-rw-r--r--src/sysdep.c4
2 files changed, 6 insertions, 16 deletions
diff --git a/README.multi-tty b/README.multi-tty
index 0a938a555ad..862a287fb9e 100644
--- a/README.multi-tty
+++ b/README.multi-tty
@@ -213,16 +213,6 @@ DIARY OF CHANGES
213 213
214 (Seems to be working OK.) 214 (Seems to be working OK.)
215 215
216-- Enable select on ttys (sys_select disables the native select on
217 non-X systems). There are some systems (OSS, SCO, maybe cygwin?)
218 that don't support this, so make sure the emulation remains
219 available for them.
220
221 (This was a bogus issue, select is only #defined to be sys_select
222 by sysselect.h if BROKEN_SELECT_NON_X. Fixed sysdep.c to compile
223 sys_select only then.)
224
225
226THINGS TO DO 216THINGS TO DO
227------------ 217------------
228 218
@@ -236,16 +226,16 @@ THINGS TO DO
236 226
237 Emacs usually dumps core after a few dozen iterations. (The bug 227 Emacs usually dumps core after a few dozen iterations. (The bug
238 seems to be related to the xfree()ing or bzero()ing of 228 seems to be related to the xfree()ing or bzero()ing of
239 tty_output.Wcm or some other tty_output part. Maybe there are 229 tty_output.Wcm. Maybe there are outside references to struct Wcm?
240 outside references to struct Wcm? Why were these vars collected 230 Why were these vars collected into a struct before multi-tty
241 into a struct before multi-tty support?) 231 support?)
242 232
243 The bug does not seem to happen if the error occurs before terminal 233 The bug does not seem to happen if the error occurs before terminal
244 initialization or if I comment out all xfree()s in delete_frame. 234 initialization or if I comment out all xfree()s in delete_frame.
245 Update: yes it does, although it is much rarer. Or maybe it's 235 Update: yes it does, although it is much rarer. Or maybe it's
246 another bug. 236 another bug.
247 237
248 Update: Some of these errors may have been caused by having more 238 Idea: Some of these errors may have been caused by having more
249 file handles than FD_SETSIZE. 239 file handles than FD_SETSIZE.
250 240
251** Find out why does Emacs abort when it wants to close its 241** Find out why does Emacs abort when it wants to close its
diff --git a/src/sysdep.c b/src/sysdep.c
index cc5ef0c5511..b3a46c77eb3 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -2499,7 +2499,7 @@ select_alarm ()
2499 longjmp (read_alarm_throw, 1); 2499 longjmp (read_alarm_throw, 1);
2500} 2500}
2501 2501
2502#if (!defined (HAVE_SELECT) || defined (BROKEN_SELECT_NON_X)) && !defined (WINDOWSNT) 2502#ifndef WINDOWSNT
2503/* Only rfds are checked. */ 2503/* Only rfds are checked. */
2504int 2504int
2505sys_select (nfds, rfds, wfds, efds, timeout) 2505sys_select (nfds, rfds, wfds, efds, timeout)
@@ -2631,7 +2631,7 @@ sys_select (nfds, rfds, wfds, efds, timeout)
2631 } 2631 }
2632 return ravail; 2632 return ravail;
2633} 2633}
2634#endif /* (!defined (HAVE_SELECT) || defined (BROKEN_SELECT_NON_X)) && !defined (WINDOWSNT) */ 2634#endif not WINDOWSNT
2635 2635
2636/* Read keyboard input into the standard buffer, 2636/* Read keyboard input into the standard buffer,
2637 waiting for at least one character. */ 2637 waiting for at least one character. */