From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!.POSTED!not-for-mail From: Richard Copley Newsgroups: gmane.emacs.bugs Subject: bug#25875: 26.0.50; Hang logging out of MS-Windows Date: Tue, 28 Feb 2017 06:37:03 +0000 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> <83efyjpef6.fsf@gnu.org> <83bmtnpd0k.fsf@gnu.org> <83a897outx.fsf@gnu.org> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1488263895 5656 195.159.176.226 (28 Feb 2017 06:38:15 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 28 Feb 2017 06:38:15 +0000 (UTC) Cc: 25875@debbugs.gnu.org To: Eli Zaretskii Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Feb 28 07:38:11 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 1cibQF-0000oU-GR for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Feb 2017 07:38:07 +0100 Original-Received: from localhost ([::1]:58919 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cibQL-0000xR-Bh for geb-bug-gnu-emacs@m.gmane.org; Tue, 28 Feb 2017 01:38:13 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:41912) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1cibQF-0000x9-BX for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 01:38:08 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1cibQB-0001Gc-7I for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 01:38:07 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60763) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1cibQB-0001GY-3H for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 01:38:03 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1cibQ9-0006Vu-M3 for bug-gnu-emacs@gnu.org; Tue, 28 Feb 2017 01:38:02 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Richard Copley Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 28 Feb 2017 06:38:01 +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.148826386225013 (code B ref 25875); Tue, 28 Feb 2017 06:38:01 +0000 Original-Received: (at 25875) by debbugs.gnu.org; 28 Feb 2017 06:37:42 +0000 Original-Received: from localhost ([127.0.0.1]:58962 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cibPq-0006VN-2y for submit@debbugs.gnu.org; Tue, 28 Feb 2017 01:37:42 -0500 Original-Received: from mail-ua0-f180.google.com ([209.85.217.180]:36854) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1cibPo-0006V7-2h for 25875@debbugs.gnu.org; Tue, 28 Feb 2017 01:37:40 -0500 Original-Received: by mail-ua0-f180.google.com with SMTP id 72so3194824uaf.3 for <25875@debbugs.gnu.org>; Mon, 27 Feb 2017 22:37:40 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Kb5+gBus21PymI1pRbr/OD93q0dZ42qRb7I3zioB87o=; b=gDiHjFRXQIctrierVKjYcD7t0CZjkNalS9Edqv4RGsNoW/Z9cN+ybkbGBuGVm9WWQa yu8m4ZKY8sxad2kdF9Exi3/6ov70sjEcUtxOaLr3y4rmPvLMEM+JT1nx/BwwPrEoxZfk 6FWfwdX/tSmlWnm3v/De8oXrZ/wjgFlPNcKQva8GAgjIldGYTSqwKY+RbkFbSI9M3XOV op6QRbuW34+d1nF8rn4eH8vu0/VB2YkoJFqhz3t4MY4wXLOYADvoiwJNRTU1SIELKl+H yOuA/EeJpgnrFfJ02/piZO8UwSwLO0w3vzNMHoE0vFcOUCymXGBThFgWvLcackZIDpZJ giPw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Kb5+gBus21PymI1pRbr/OD93q0dZ42qRb7I3zioB87o=; b=inFXXo8BbS/QO+m8VR+0LLHpy1oek3aw5bq/gtFjQ78gbQErlKFmmUGh8mhbAceTyx dMsukJcRHhAUmnjWWeK1qRL8wmKdw3oF2gPhbnfwBmt6o0KJELWAeIpOzumnwlV/Qj0W jBoE9vmMPyhn3zxJZhxgZExBng1Wr+8mrLjWZg3oh2+31Wc63OQask/JhiGM7YuqbGkM viufH/p3SMqI5Zothj6u+dl49xyf7Hg7uSNLGC80aLmFJ54dTLb/epolA5sTHAh2F9ZU /n/ZW1s9eLpgfZNSAdFRaoNsqNog4IfbzHJMgdiVRLNP2m270ZWpwf2t+lcyfMVDPWJE b8uw== X-Gm-Message-State: AMke39mpmO438Qn+aRqVMsruQ40vxgxkQPlwyL0PJIhYtX37Pgw9nI9OAz+29PBrfcBwAvLuBzasHTpLfswk4Q== X-Received: by 10.159.48.147 with SMTP id j19mr330595uab.6.1488263854200; Mon, 27 Feb 2017 22:37:34 -0800 (PST) Original-Received: by 10.176.71.214 with HTTP; Mon, 27 Feb 2017 22:37:03 -0800 (PST) In-Reply-To: <83a897outx.fsf@gnu.org> 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:129924 Archived-At: On 28 February 2017 at 03:30, Eli Zaretskii wrote: >> From: Richard Copley >> Date: Mon, 27 Feb 2017 21:09:52 +0000 >> Cc: Ken Brown , 25875@debbugs.gnu.org >> >> >> Posting a message and then sleeping while it's processed is odd, >> >> isn't it? If the input thread /sent/ its message to the main thread, >> >> then while waiting for SendMessage to return, the input thread would >> >> automatically continue to process sent messages >> > >> > No, it's the main thread that calls SendMessage, to tell the input >> > thread to draw something. And since the input thread is inside >> > 'sleep', the SendMessage call never returns, and the main thread never >> > gets around to checking its input queue, where there's an event bound >> > to kill-emacs, waiting to be processed. >> >> Please Eli, read what I said again. It might not be right, but you >> misunderstood it. >> I know the input thread isn't calling SendMessage. It's callling PostMessage and >> then sleep. I'm suggesting that the input thread should call SendMessage. > > The input thread doesn't call PostMessage. It calls post_message, > which is a private messaging mechanism between the input thread and > the main thread, implemented in w32xfns.c and based on a critical > section. IOW, we don't use the Windows messaging in that case. So I > don't see how calling SendMessage will help in this situation. Am I > missing something? I see, thanks.