GNU bug report logs - #25875
26.0.50; Hang logging out of MS-Windows

Previous Next

Package: emacs;

Reported by: Richard Copley <rcopley <at> gmail.com>

Date: Sat, 25 Feb 2017 19:37:01 UTC

Severity: normal

Found in version 26.0.50

Done: Ken Brown <kbrown <at> cornell.edu>

Bug is archived. No further changes may be made.

Full log


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

From: Eli Zaretskii <eliz <at> gnu.org>
To: Ken Brown <kbrown <at> cornell.edu>
Cc: rcopley <at> gmail.com, 25875 <at> debbugs.gnu.org
Subject: Re: bug#25875: 26.0.50; Hang logging out of MS-Windows
Date: Sun, 26 Feb 2017 21:25:17 +0200
> Cc: rcopley <at> gmail.com, 25875 <at> debbugs.gnu.org
> From: Ken Brown <kbrown <at> cornell.edu>
> Date: Sun, 26 Feb 2017 13:58:23 -0500
> 
> > I think the problem in this particular scenario is not that the input
> > thread sleeps too long, it's that whenever it finishes sleeping and
> > returns, Emacs will be killed, so the WM_ENDSESSION message that was
> > posted to the main thread will never have a chance to be processed,
> > and thus orderly shutdown will never happen.
> >
> > That is why I thought about using SendMessageTimeout in the main
> > thread: what we really want is to cause the main thread to wake up and
> > process the WM_ENDSESSION message.  Right?
> 
> Yes, that would obviously be better.

OK.  Can you propose a patch that Richard could try?  Or should I do
that?

> But in any case, I don't think we want the input thread to sleep for
> 1000 seconds.  If we can't arrange an orderly shutdown, we should
> give up after a reasonable amount of time.

Yes, I agree.




This bug report was last modified 8 years and 85 days ago.

Previous Next


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