aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/process.c b/src/process.c
index 3fccd962da6..06324641346 100644
--- a/src/process.c
+++ b/src/process.c
@@ -4608,7 +4608,7 @@ is nil, from any process) before the timeout expired. */)
4608 4608
4609 /* Can't wait for a process that is dedicated to a different 4609 /* Can't wait for a process that is dedicated to a different
4610 thread. */ 4610 thread. */
4611 if (!EQ (proc->thread, Qnil) && !EQ (proc->thread, Fcurrent_thread ())) 4611 if (!NILP (proc->thread) && !EQ (proc->thread, Fcurrent_thread ()))
4612 { 4612 {
4613 Lisp_Object proc_thread_name = XTHREAD (proc->thread)->name; 4613 Lisp_Object proc_thread_name = XTHREAD (proc->thread)->name;
4614 4614
@@ -5015,7 +5015,7 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
5015 struct timespec now = invalid_timespec (); 5015 struct timespec now = invalid_timespec ();
5016 5016
5017 eassert (wait_proc == NULL 5017 eassert (wait_proc == NULL
5018 || EQ (wait_proc->thread, Qnil) 5018 || NILP (wait_proc->thread)
5019 || XTHREAD (wait_proc->thread) == current_thread); 5019 || XTHREAD (wait_proc->thread) == current_thread);
5020 5020
5021 FD_ZERO (&Available); 5021 FD_ZERO (&Available);