From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Ken Brown Newsgroups: gmane.emacs.bugs Subject: bug#25875: 26.0.50; Hang logging out of MS-Windows Date: Mon, 27 Feb 2017 14:39:17 -0500 Message-ID: References: <83lgsuqacv.fsf@gnu.org> <83efylq7m4.fsf@gnu.org> <834lzgreqq.fsf@gnu.org> <3f07808e-ab1c-d6b5-9ea0-dfc4c6fd6fc9@cornell.edu> <8337f0rbz6.fsf@gnu.org> <83shmzprwo.fsf@gnu.org> <83fuizphp8.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1488224584 7713 195.159.176.226 (27 Feb 2017 19:43:04 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 19:43:04 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 Cc: 25875@debbugs.gnu.org To: Richard Copley , Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Feb 27 20:42:57 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 1ciRC5-0000rw-SR for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 20:42:49 +0100 Original-Received: from localhost ([::1]:56329 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciRCB-0004rs-SB for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 14:42:55 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49067) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciR9S-0002Gl-Md for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:40:07 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciR9O-0002kf-NS for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:40:06 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60484) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciR9O-0002kW-JZ for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:40:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ciR9O-0006b1-7x for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:40:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 27 Feb 2017 19:40: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.148822436925314 (code B ref 25875); Mon, 27 Feb 2017 19:40:02 +0000 Original-Received: (at 25875) by debbugs.gnu.org; 27 Feb 2017 19:39:29 +0000 Original-Received: from localhost ([127.0.0.1]:58683 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciR8r-0006aD-4M for submit@debbugs.gnu.org; Mon, 27 Feb 2017 14:39:29 -0500 Original-Received: from limerock02.mail.cornell.edu ([128.84.13.242]:47113) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciR8p-0006a0-JX for 25875@debbugs.gnu.org; Mon, 27 Feb 2017 14:39:27 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite4.serverfarm.cornell.edu [10.16.197.9]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v1RJdLea014905; Mon, 27 Feb 2017 14:39:21 -0500 Original-Received: from [192.168.1.6] (mta-68-175-148-36.twcny.rr.com [68.175.148.36] (may be forged)) (authenticated bits=0) by authusersmtp.mail.cornell.edu (8.14.4/8.12.10) with ESMTP id v1RJdJKd010538 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Mon, 27 Feb 2017 14:39:20 -0500 In-Reply-To: X-PMX-Cornell-Gauge: Gauge=XXXXX X-PMX-CORNELL-AUTH-RESULTS: dkim-out=none; 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:129901 Archived-At: On 2/27/2017 2:30 PM, Richard Copley wrote: > If you want to block or delay a shutdown in recent > Windows versions you need to use > ShutdownBlockReasonCreate (it's unfortunate, but > we lazy programmers proved we couldn't be trusted, > collectively, to handle WM_QUERY_ENDSESSION > correctly, so the arms race had to be escalated in > order to allow users to shut down their computers > reliably). In spite of the careless mistake in my patch, you could still test Eli's suggestion of using SendMessageTimeout instead of SendMessage, at least in my_show_window. > Ken, what was the original change intended to guard > against? What would people be doing with Emacs that > can't simply be abandoned? Did you have a particular > example in mind? Bug#23483. Ken