aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorEli Zaretskii2025-09-06 12:43:19 +0300
committerEli Zaretskii2025-09-06 12:43:19 +0300
commit29d18f4ffe9c9152bdfe2d4dec9f8a74609cf4c5 (patch)
tree2a4c81d728213e2ae668eb8703cc013cddbea26c /src
parent6b42b974ceabba8b0215498d4a6eb5048d91514d (diff)
downloademacs-29d18f4ffe9c9152bdfe2d4dec9f8a74609cf4c5.tar.gz
emacs-29d18f4ffe9c9152bdfe2d4dec9f8a74609cf4c5.zip
Avoid assertion violations when starting client network process
* src/process.c (deactivate_process): Clear the callback info of descriptors we are closing. (Bug#79367)
Diffstat (limited to 'src')
-rw-r--r--src/process.c6
1 files changed, 5 insertions, 1 deletions
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)
4831 /* Beware SIGCHLD hereabouts. */ 4831 /* Beware SIGCHLD hereabouts. */
4832 4832
4833 for (i = 0; i < PROCESS_OPEN_FDS; i++) 4833 for (i = 0; i < PROCESS_OPEN_FDS; i++)
4834 close_process_fd (&p->open_fd[i]); 4834 {
4835 fd_callback_info[p->open_fd[i]].thread = NULL;
4836 fd_callback_info[p->open_fd[i]].waiting_thread = NULL;
4837 close_process_fd (&p->open_fd[i]);
4838 }
4835 4839
4836 inchannel = p->infd; 4840 inchannel = p->infd;
4837 eassert (inchannel < FD_SETSIZE); 4841 eassert (inchannel < FD_SETSIZE);