1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-06 06:20:55 -08:00

; * src/process.c (set_proc_thread): Fix assertion.

This commit is contained in:
Eli Zaretskii 2025-08-16 13:28:52 +03:00
parent 9985e71eb7
commit 034d755f2f

View file

@ -1449,7 +1449,8 @@ See `set-process-sentinel' for more info on sentinels. */)
static void
set_proc_thread (struct Lisp_Process *proc, struct thread_state *thrd)
{
eassert (THREADP (proc->thread) && XTHREAD (proc->thread) == thrd);
eassert ((NILP (proc->thread) && !thrd)
|| (THREADP (proc->thread) && XTHREAD (proc->thread) == thrd));
eassert (proc->infd < FD_SETSIZE);
if (proc->infd >= 0)
fd_callback_info[proc->infd].thread = thrd;