Mercurial > emacs
comparison src/process.c @ 44890:01b93e5e53a7
Patch for building Emacs on Mac OS X. April 26, 2002. See ChangeLog,
lisp/ChangeLog, and src/ChangeLog for list of changes.
author | Andrew Choi <akochoi@shaw.ca> |
---|---|
date | Fri, 26 Apr 2002 23:39:06 +0000 |
parents | 65c0edf0d53c |
children | 084928cfcfcb |
comparison
equal
deleted
inserted
replaced
44889:e3b9f45140a5 | 44890:01b93e5e53a7 |
---|---|
134 /* QCfamily is declared and initialized in xfaces.c, | 134 /* QCfamily is declared and initialized in xfaces.c, |
135 QCfilter in keyboard.c. */ | 135 QCfilter in keyboard.c. */ |
136 extern Lisp_Object QCfamily, QCfilter; | 136 extern Lisp_Object QCfamily, QCfilter; |
137 | 137 |
138 /* Qexit is declared and initialized in eval.c. */ | 138 /* Qexit is declared and initialized in eval.c. */ |
139 | |
140 /* QCfamily is defined in xfaces.c. */ | |
141 extern Lisp_Object QCfamily; | |
142 /* QCfilter is defined in keyboard.c. */ | |
143 extern Lisp_Object QCfilter; | |
139 | 144 |
140 /* a process object is a network connection when its childp field is neither | 145 /* a process object is a network connection when its childp field is neither |
141 Qt nor Qnil but is instead a cons cell (HOSTNAME PORTNUM). */ | 146 Qt nor Qnil but is instead a cons cell (HOSTNAME PORTNUM). */ |
142 | 147 |
143 #ifdef HAVE_SOCKETS | 148 #ifdef HAVE_SOCKETS |
3748 if (update_tick != process_tick && do_display) | 3753 if (update_tick != process_tick && do_display) |
3749 { | 3754 { |
3750 SELECT_TYPE Atemp, Ctemp; | 3755 SELECT_TYPE Atemp, Ctemp; |
3751 | 3756 |
3752 Atemp = input_wait_mask; | 3757 Atemp = input_wait_mask; |
3758 #ifdef MAC_OSX | |
3759 /* On Mac OS X, the SELECT system call always says input is | |
3760 present (for reading) at stdin, even when none is. This | |
3761 causes the the call to SELECT below to return 1 and | |
3762 status_notify not to be called. As a result output of | |
3763 subprocesses are incorrectly discarded. */ | |
3764 FD_CLR (0, &Atemp); | |
3765 #endif | |
3753 Ctemp = connect_wait_mask; | 3766 Ctemp = connect_wait_mask; |
3754 EMACS_SET_SECS_USECS (timeout, 0, 0); | 3767 EMACS_SET_SECS_USECS (timeout, 0, 0); |
3755 if ((select (max (max_process_desc, max_keyboard_desc) + 1, | 3768 if ((select (max (max_process_desc, max_keyboard_desc) + 1, |
3756 &Atemp, | 3769 &Atemp, |
3757 (num_pending_connects > 0 ? &Ctemp : (SELECT_TYPE *)0), | 3770 (num_pending_connects > 0 ? &Ctemp : (SELECT_TYPE *)0), |