aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-05 22:50:44 +0200
committerEli Zaretskii2016-12-05 22:50:44 +0200
commit66a5abb102ec1d6e4c327632ef235d1eb6433291 (patch)
tree9e894dfb5dcf42869bff94987d7ab5628ea71358 /src/process.c
parente4deba098e0281538a0e7b04d849989f17e5bcc7 (diff)
downloademacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.tar.gz
emacs-66a5abb102ec1d6e4c327632ef235d1eb6433291.zip
Fix compilation problems.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c11
1 files changed, 3 insertions, 8 deletions
diff --git a/src/process.c b/src/process.c
index 7f2a071e67b..e800bf278bc 100644
--- a/src/process.c
+++ b/src/process.c
@@ -526,8 +526,6 @@ recompute_max_desc (void)
526void 526void
527delete_write_fd (int fd) 527delete_write_fd (int fd)
528{ 528{
529 int lim = max_desc;
530
531 if ((fd_callback_info[fd].flags & NON_BLOCKING_CONNECT_FD) != 0) 529 if ((fd_callback_info[fd].flags & NON_BLOCKING_CONNECT_FD) != 0)
532 { 530 {
533 if (--num_pending_connects < 0) 531 if (--num_pending_connects < 0)
@@ -1232,7 +1230,7 @@ set_process_filter_masks (struct Lisp_Process *p)
1232 else if (EQ (p->filter, Qt) 1230 else if (EQ (p->filter, Qt)
1233 /* Network or serial process not stopped: */ 1231 /* Network or serial process not stopped: */
1234 && !EQ (p->command, Qt)) 1232 && !EQ (p->command, Qt))
1235 add_read_fd (p->infd); 1233 add_non_keyboard_read_fd (p->infd);
1236} 1234}
1237 1235
1238DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter, 1236DEFUN ("set-process-filter", Fset_process_filter, Sset_process_filter,
@@ -3281,7 +3279,7 @@ finish_after_tls_connection (Lisp_Object proc)
3281 pset_status (p, Qfailed); 3279 pset_status (p, Qfailed);
3282 deactivate_process (proc); 3280 deactivate_process (proc);
3283 } 3281 }
3284 else if (! FD_ISSET (p->outfd, &connect_wait_mask)) 3282 else if ((fd_callback_info[p->outfd].flags & NON_BLOCKING_CONNECT_FD) == 0)
3285 { 3283 {
3286 /* If we cleared the connection wait mask before we did the TLS 3284 /* If we cleared the connection wait mask before we did the TLS
3287 setup, then we have to say that the process is finally "open" 3285 setup, then we have to say that the process is finally "open"
@@ -5730,7 +5728,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
5730 5728
5731 if (0 <= p->infd && !EQ (p->filter, Qt) 5729 if (0 <= p->infd && !EQ (p->filter, Qt)
5732 && !EQ (p->command, Qt)) 5730 && !EQ (p->command, Qt))
5733 add_read_fd (p->infd); 5731 add_non_keyboard_read_fd (p->infd);
5734 } 5732 }
5735 } 5733 }
5736 } /* End for each file descriptor. */ 5734 } /* End for each file descriptor. */
@@ -7675,9 +7673,6 @@ void
7675delete_keyboard_wait_descriptor (int desc) 7673delete_keyboard_wait_descriptor (int desc)
7676{ 7674{
7677#ifdef subprocesses 7675#ifdef subprocesses
7678 int fd;
7679 int lim = max_desc;
7680
7681 eassert (desc >= 0 && desc < FD_SETSIZE); 7676 eassert (desc >= 0 && desc < FD_SETSIZE);
7682 7677
7683 fd_callback_info[desc].flags &= ~(FOR_READ | KEYBOARD_FD | PROCESS_FD); 7678 fd_callback_info[desc].flags &= ~(FOR_READ | KEYBOARD_FD | PROCESS_FD);