From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#25875: 26.0.50; Hang logging out of MS-Windows Date: Sun, 26 Feb 2017 21:25:17 +0200 Message-ID: <8337f0rbz6.fsf@gnu.org> References: <83lgsuqacv.fsf@gnu.org> <83efylq7m4.fsf@gnu.org> <834lzgreqq.fsf@gnu.org> <3f07808e-ab1c-d6b5-9ea0-dfc4c6fd6fc9@cornell.edu> Reply-To: Eli Zaretskii NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1488137176 26711 195.159.176.226 (26 Feb 2017 19:26:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Sun, 26 Feb 2017 19:26:16 +0000 (UTC) Cc: rcopley@gmail.com, 25875@debbugs.gnu.org To: Ken Brown Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Sun Feb 26 20:26:10 2017 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by blaine.gmane.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci4SN-0005to-5S for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 20:26:07 +0100 Original-Received: from localhost ([::1]:48023 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci4SR-0008I1-Hv for geb-bug-gnu-emacs@m.gmane.org; Sun, 26 Feb 2017 14:26:11 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41312) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci4SL-0008Go-RV for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 14:26:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci4SI-0004dW-N6 for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 14:26:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:58860) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ci4SI-0004d5-IX for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 14:26:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ci4SI-0003BB-DG for bug-gnu-emacs@gnu.org; Sun, 26 Feb 2017 14:26:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Sun, 26 Feb 2017 19:26:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25875-submit@debbugs.gnu.org id=B25875.148813714712200 (code B ref 25875); Sun, 26 Feb 2017 19:26:02 +0000 Original-Received: (at 25875) by debbugs.gnu.org; 26 Feb 2017 19:25:47 +0000 Original-Received: from localhost ([127.0.0.1]:57059 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci4S2-0003Ai-P9 for submit@debbugs.gnu.org; Sun, 26 Feb 2017 14:25:46 -0500 Original-Received: from eggs.gnu.org ([208.118.235.92]:50292) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ci4S1-0003AV-QV for 25875@debbugs.gnu.org; Sun, 26 Feb 2017 14:25:46 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ci4Rt-0004U0-KP for 25875@debbugs.gnu.org; Sun, 26 Feb 2017 14:25:40 -0500 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:46095) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ci4Rt-0004Tq-HA; Sun, 26 Feb 2017 14:25:37 -0500 Original-Received: from 84.94.185.246.cable.012.net.il ([84.94.185.246]:2191 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1ci4Rs-0000Pa-P9; Sun, 26 Feb 2017 14:25:37 -0500 In-reply-to: <3f07808e-ab1c-d6b5-9ea0-dfc4c6fd6fc9@cornell.edu> (message from Ken Brown on Sun, 26 Feb 2017 13:58:23 -0500) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.2.x-3.x [generic] X-Received-From: 208.118.235.43 X-BeenThere: bug-gnu-emacs@gnu.org List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Original-Sender: "bug-gnu-emacs" Xref: news.gmane.org gmane.emacs.bugs:129837 Archived-At: > Cc: rcopley@gmail.com, 25875@debbugs.gnu.org > From: Ken Brown > 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.