mirror of
https://git.savannah.gnu.org/git/emacs.git
synced 2024-11-23 07:19:15 +00:00
Reinstate ifdef subprocesses.
* process.c (add_keyboard_wait_descriptor) (delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
This commit is contained in:
parent
3fad2ad22e
commit
bf05eed640
@ -1,5 +1,8 @@
|
||||
2010-09-26 Jan Djärv <jan.h.d@swipnet.se>
|
||||
|
||||
* process.c (add_keyboard_wait_descriptor)
|
||||
(delete_keyboard_wait_descriptor): Reinstate ifdef subprocesses.
|
||||
|
||||
* process.h (add_read_fd, delete_read_fd, add_write_fd)
|
||||
(delete_write_fd): Declare.
|
||||
|
||||
|
@ -7086,10 +7086,12 @@ wait_reading_process_output (int time_limit, int microsecs, int read_kbd,
|
||||
void
|
||||
add_keyboard_wait_descriptor (int desc)
|
||||
{
|
||||
#ifdef subprocesses /* actually means "not MSDOS" */
|
||||
FD_SET (desc, &input_wait_mask);
|
||||
FD_SET (desc, &non_process_wait_mask);
|
||||
if (desc > max_input_desc)
|
||||
max_input_desc = desc;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* From now on, do not expect DESC to give keyboard input. */
|
||||
@ -7097,6 +7099,7 @@ add_keyboard_wait_descriptor (int desc)
|
||||
void
|
||||
delete_keyboard_wait_descriptor (int desc)
|
||||
{
|
||||
#ifdef subprocesses
|
||||
int fd;
|
||||
int lim = max_input_desc;
|
||||
|
||||
@ -7107,6 +7110,7 @@ delete_keyboard_wait_descriptor (int desc)
|
||||
for (fd = 0; fd < lim; fd++)
|
||||
if (FD_ISSET (fd, &input_wait_mask) || FD_ISSET (fd, &write_mask))
|
||||
max_input_desc = fd;
|
||||
#endif
|
||||
}
|
||||
|
||||
/* Setup coding systems of PROCESS. */
|
||||
|
Loading…
Reference in New Issue
Block a user