aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorEli Zaretskii2025-08-16 13:28:52 +0300
committerEli Zaretskii2025-08-16 13:28:52 +0300
commit034d755f2f21088b97fdb0a34d846c39fcdbf46d (patch)
tree5500117183eb688380dfdc4d3b8d8608365bb5fb /src/process.c
parent9985e71eb79624a0722b00bb2108d90b6e7ab50e (diff)
downloademacs-034d755f2f21088b97fdb0a34d846c39fcdbf46d.tar.gz
emacs-034d755f2f21088b97fdb0a34d846c39fcdbf46d.zip
; * src/process.c (set_proc_thread): Fix assertion.
Diffstat (limited to 'src/process.c')
-rw-r--r--src/process.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c
index f8d67561f26..c8b70a4174c 100644
--- a/src/process.c
+++ b/src/process.c
@@ -1449,7 +1449,8 @@ See `set-process-sentinel' for more info on sentinels. */)
1449static void 1449static void
1450set_proc_thread (struct Lisp_Process *proc, struct thread_state *thrd) 1450set_proc_thread (struct Lisp_Process *proc, struct thread_state *thrd)
1451{ 1451{
1452 eassert (THREADP (proc->thread) && XTHREAD (proc->thread) == thrd); 1452 eassert ((NILP (proc->thread) && !thrd)
1453 || (THREADP (proc->thread) && XTHREAD (proc->thread) == thrd));
1453 eassert (proc->infd < FD_SETSIZE); 1454 eassert (proc->infd < FD_SETSIZE);
1454 if (proc->infd >= 0) 1455 if (proc->infd >= 0)
1455 fd_callback_info[proc->infd].thread = thrd; 1456 fd_callback_info[proc->infd].thread = thrd;