GNU bug report logs - #79387
30.1.90; If a thread exits, other threads in wait_reading_process_output aren't woken up

Previous Next

Package: emacs;

Reported by: Spencer Baugh <sbaugh <at> janestreet.com>

Date: Thu, 4 Sep 2025 19:58:03 UTC

Severity: normal

Found in version 30.1.90

Full log


Message #23 received at 79387 <at> debbugs.gnu.org (full text, mbox):

From: Eli Zaretskii <eliz <at> gnu.org>
To: sbaugh <at> janestreet.com
Cc: dmitry <at> gutov.dev, 79387 <at> debbugs.gnu.org
Subject: Re: bug#79387: 30.1.90;
 If a thread exits, other threads in wait_reading_process_output
 aren't woken up
Date: Sat, 06 Sep 2025 16:25:22 +0300
> Cc: dmitry <at> gutov.dev, 79387 <at> debbugs.gnu.org
> Date: Sat, 06 Sep 2025 16:21:48 +0300
> From: Eli Zaretskii <eliz <at> gnu.org>
> 
> > From: Spencer Baugh <sbaugh <at> janestreet.com>
> > Date: Sat, 6 Sep 2025 08:44:03 -0400
> > Cc: Dmitry Gutov <dmitry <at> gutov.dev>, 79387 <at> debbugs.gnu.org
> > 
> >  > Do you think the "associate a pipe with each thread to use for wakeups,
> >  > and write to it when a thread exits" approach sounds reasonable?
> > 
> >  I'd prefer not to, because a self-pipe is not portable enough.
> > 
> > Interesting, what Emacs platform supports threads but does not support pipes?
> > 
> > I think on the contrary that it is portable to all the Emacs platforms with threads.
> 
> Not pipes, but pipes whose reading and writing edges are the same
> program.  Windows doesn't support that, and I'm not sure about other
> platforms.

Or maybe it's possible, but I don't know how to do that.




This bug report was last modified 1 day ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.