1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-28 08:11:05 -08:00

Avoid assertion violations when starting client network process

* src/process.c (deactivate_process): Clear the callback info of
descriptors we are closing.  (Bug#79367)
This commit is contained in:
Eli Zaretskii 2025-09-06 12:43:19 +03:00
parent 6b42b974ce
commit 29d18f4ffe

View file

@ -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);