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: Tue, 28 Feb 2017 11:40:05 -0500 Message-ID: <7708fd40-e6dd-8022-4acf-9c86630cce19@cornell.edu> References: <83lgsuqacv.fsf@gnu.org> <83efylq7m4.fsf@gnu.org> <834lzgreqq.fsf@gnu.org> <3f07808e-ab1c-d6b5-9ea0-dfc4c6fd6fc9@cornell.edu> <8337f0rbz6.fsf@gnu.org> <648f03f0-e4d4-c04e-afbf-d8ef8741b15e@cornell.edu> <8360jvoumt.fsf@gnu.org> <834lzepbtp.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Trace: blaine.gmane.org 1488300718 19609 195.159.176.226 (28 Feb 2017 16:51:58 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2017 16:51:58 +0000 (UTC) User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.7.1 Cc: 25875-done@debbugs.gnu.org To: Eli Zaretskii , Richard Copley Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 28 17:51:50 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 1cil08-00044t-Vi for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Feb 2017 17:51:49 +0100 Original-Received: from localhost ([::1]:35485 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cil0D-0001v6-Dg for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Feb 2017 11:51:53 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57529) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cikpl-0001P2-Jv for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 11:41:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cikpi-0005Nd-I7 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 11:41:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:34045) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cikpi-0005NX-EL for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 11:41:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cikpi-0003O1-8r for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 11:41:02 -0500 Resent-From: Ken Brown Original-Sender: "Debbugs-submit" Resent-To: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2017 16:41:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: cc-closed 25875 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Mail-Followup-To: 25875@debbugs.gnu.org, kbrown@cornell.edu, rcopley@gmail.com Original-Received: via spool by 25875-done@debbugs.gnu.org id=D25875.148830000812943 (code D ref 25875); Tue, 28 Feb 2017 16:41:02 +0000 Original-Received: (at 25875-done) by debbugs.gnu.org; 28 Feb 2017 16:40:08 +0000 Original-Received: from localhost ([127.0.0.1]:60477 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cikoq-0003Mh-5E for submit@debbugs.gnu.org; Tue, 28 Feb 2017 11:40:08 -0500 Original-Received: from limerock02.mail.cornell.edu ([128.84.13.242]:56805) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cikoo-0003M2-KQ for 25875-done@debbugs.gnu.org; Tue, 28 Feb 2017 11:40:07 -0500 X-CornellRouted: This message has been Routed already. Original-Received: from authusersmtp.mail.cornell.edu (granite3.serverfarm.cornell.edu [10.16.197.8]) by limerock02.mail.cornell.edu (8.14.4/8.14.4_cu) with ESMTP id v1SGe0wa015489; Tue, 28 Feb 2017 11:40:00 -0500 Original-Received: from [192.168.1.4] (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 v1SGdxGZ030163 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NOT); Tue, 28 Feb 2017 11:39:59 -0500 In-Reply-To: <834lzepbtp.fsf@gnu.org> 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:129951 Archived-At: On 2/28/2017 10:36 AM, Eli Zaretskii wrote: >> From: Richard Copley >> In the nine months since Ken's change, I've noticed a problem with >> Emacs twice. > > Then I guess it would be better to just push those changes and see if > they do any harm. >> I can't get my head around the idea. If we don't care whether or not >> the action in question has finished when SendMessage returns, >> then why are we using SendMessage? And if we do care, then >> shouldn't I expect weird bugs caused by timing out when the system's >> under load? > > If a window procedure doesn't process messages for more than 5 sec, > Windows will put "Not Responding" on its caption bar. So I think the > 100 msec number in Ken's patch should be changed to something like > 6000, and then we are fine, because even on a busy system this should > be long enough. And if Emacs (and the OS) is about to shut down, it's > even less of a problem to ignore a message that timed out, IMO. I've pushed the patch (with 6000 msec) and am closing the bug. Richard, please reopen if you ever see the problem again. I'm leaving the sleep(1000) in w32_wnd_proc, at least for now, because I want to find out about it if the problem isn't really fixed. Maybe I'll add a FIXME comment. Ken