From 29d18f4ffe9c9152bdfe2d4dec9f8a74609cf4c5 Mon Sep 17 00:00:00 2001 From: Eli Zaretskii Date: Sat, 6 Sep 2025 12:43:19 +0300 Subject: [PATCH] Avoid assertion violations when starting client network process * src/process.c (deactivate_process): Clear the callback info of descriptors we are closing. (Bug#79367) --- src/process.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/process.c b/src/process.c index fa003c29851..736098fb410 100644 --- a/src/process.c +++ b/src/process.c @@ -4831,7 +4831,11 @@ deactivate_process (Lisp_Object proc) /* Beware SIGCHLD hereabouts. */ for (i = 0; i < PROCESS_OPEN_FDS; i++) - close_process_fd (&p->open_fd[i]); + { + fd_callback_info[p->open_fd[i]].thread = NULL; + fd_callback_info[p->open_fd[i]].waiting_thread = NULL; + close_process_fd (&p->open_fd[i]); + } inchannel = p->infd; eassert (inchannel < FD_SETSIZE);