aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-05 20:59:11 +0200
committerEli Zaretskii2016-12-05 20:59:11 +0200
commite4deba098e0281538a0e7b04d849989f17e5bcc7 (patch)
tree597ec86397a68d6a73f8ce948ac28abc19b335f6 /src/process.c
parentde4624c99ea5bbe38ad5aff7b6461cc5c740d0be (diff)
downloademacs-e4deba098e0281538a0e7b04d849989f17e5bcc7.tar.gz
emacs-e4deba098e0281538a0e7b04d849989f17e5bcc7.zip
Fix merged code in process.c and eval.c.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c13
1 files changed, 8 insertions, 5 deletions
diff --git a/src/process.c b/src/process.c
index e538c86fcf5..7f2a071e67b 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1321,7 +1321,8 @@ See `set-process-sentinel' for more info on sentinels. */)
1321 1321
1322DEFUN ("set-process-thread", Fset_process_thread, Sset_process_thread, 1322DEFUN ("set-process-thread", Fset_process_thread, Sset_process_thread,
1323 2, 2, 0, 1323 2, 2, 0,
1324 doc: /* FIXME */) 1324 doc: /* Set the locking thread of PROCESS to be THREAD.
1325If THREAD is nil, the process is unlocked. */)
1325 (Lisp_Object process, Lisp_Object thread) 1326 (Lisp_Object process, Lisp_Object thread)
1326{ 1327{
1327 struct Lisp_Process *proc; 1328 struct Lisp_Process *proc;
@@ -1348,7 +1349,8 @@ DEFUN ("set-process-thread", Fset_process_thread, Sset_process_thread,
1348 1349
1349DEFUN ("process-thread", Fprocess_thread, Sprocess_thread, 1350DEFUN ("process-thread", Fprocess_thread, Sprocess_thread,
1350 1, 1, 0, 1351 1, 1, 0,
1351 doc: /* FIXME */) 1352 doc: /* Ret the locking thread of PROCESS.
1353If PROCESS is unlocked, this function returns nil. */)
1352 (Lisp_Object process) 1354 (Lisp_Object process)
1353{ 1355{
1354 CHECK_PROCESS (process); 1356 CHECK_PROCESS (process);
@@ -4573,7 +4575,8 @@ is nil, from any process) before the timeout expired. */)
4573 /* Can't wait for a process that is dedicated to a different 4575 /* Can't wait for a process that is dedicated to a different
4574 thread. */ 4576 thread. */
4575 if (!EQ (procp->thread, Qnil) && !EQ (procp->thread, Fcurrent_thread ())) 4577 if (!EQ (procp->thread, Qnil) && !EQ (procp->thread, Fcurrent_thread ()))
4576 error ("FIXME"); 4578 error ("Attempt to accept output from process %s locked to thread %s",
4579 SDATA (procp->name), SDATA (XTHREAD (procp->thread)->name));
4577 } 4580 }
4578 else 4581 else
4579 just_this_one = Qnil; 4582 just_this_one = Qnil;
@@ -5727,7 +5730,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
5727 5730
5728 if (0 <= p->infd && !EQ (p->filter, Qt) 5731 if (0 <= p->infd && !EQ (p->filter, Qt)
5729 && !EQ (p->command, Qt)) 5732 && !EQ (p->command, Qt))
5730 delete_read_fd (p->infd); 5733 add_read_fd (p->infd);
5731 } 5734 }
5732 } 5735 }
5733 } /* End for each file descriptor. */ 5736 } /* End for each file descriptor. */
@@ -7660,7 +7663,7 @@ add_keyboard_wait_descriptor (int desc)
7660{ 7663{
7661#ifdef subprocesses /* Actually means "not MSDOS". */ 7664#ifdef subprocesses /* Actually means "not MSDOS". */
7662 eassert (desc >= 0 && desc < FD_SETSIZE); 7665 eassert (desc >= 0 && desc < FD_SETSIZE);
7663 fd_callback_info[desc].flags |= FOR_READ | KEYBOARD_FD; 7666 fd_callback_info[desc].flags |= (FOR_READ | KEYBOARD_FD);
7664 if (desc > max_desc) 7667 if (desc > max_desc)
7665 max_desc = desc; 7668 max_desc = desc;
7666#endif 7669#endif