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: Mon, 27 Feb 2017 19:23:21 +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> NNTP-Posting-Host: blaine.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: blaine.gmane.org 1488223456 792 195.159.176.226 (27 Feb 2017 19:24:16 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Mon, 27 Feb 2017 19:24:16 +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 Mon Feb 27 20:24:12 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 1ciQu2-00085k-7X for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 20:24:10 +0100 Original-Received: from localhost ([::1]:56159 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciQu8-0000Jz-5p for geb-bug-gnu-emacs@m.gmane.org; Mon, 27 Feb 2017 14:24:16 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:45301) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1ciQty-0000H2-0r for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:24:06 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1ciQtu-0005NE-Rt for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:24:05 -0500 Original-Received: from debbugs.gnu.org ([208.118.235.43]:60473) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1ciQtu-0005N9-OZ for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:24:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1ciQtu-0006Ei-Gd for bug-gnu-emacs@gnu.org; Mon, 27 Feb 2017 14:24: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: Mon, 27 Feb 2017 19:24: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.148822344123966 (code B ref 25875); Mon, 27 Feb 2017 19:24:02 +0000 Original-Received: (at 25875) by debbugs.gnu.org; 27 Feb 2017 19:24:01 +0000 Original-Received: from localhost ([127.0.0.1]:58672 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciQtt-0006ET-0X for submit@debbugs.gnu.org; Mon, 27 Feb 2017 14:24:01 -0500 Original-Received: from mail-ua0-f175.google.com ([209.85.217.175]:35124) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1ciQtr-0006EG-HV for 25875@debbugs.gnu.org; Mon, 27 Feb 2017 14:24:00 -0500 Original-Received: by mail-ua0-f175.google.com with SMTP id 40so67890635uau.2 for <25875@debbugs.gnu.org>; Mon, 27 Feb 2017 11:23:59 -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=unJYytu4O0dqblmBJBAMygfMBORPbTKhrPWWfUjkt/Q=; b=B+xFDciaFiQIY6Tlyk56d5Jvt7aPxU27wx3BS4GHOFL00KXzoojw2k4dcoKeVTddW4 +5AKHz3VF2FvC8SgC3xhtjjwz9qbHUcOEeFLSq1FTYIODUo+pEz0lj6aftuv8Xv7yQhM IGX+iAK88x06rN3Ts/neAAb040wY4NTYbeGU2uhxl0VNHr9wDfrl/C2NNAFo+OZGqDpv kUhdmc8KYy7Jhw5zjKYjreYvZx5sSXKy19F7kqV46ERB24k+os36m/ADP6IKOWUn1A7F E3MsdmFi1Qr9Os7ttvOoWb4w1MbFe67mo1PITg8+PML4nNiSb7RT4/bqxPgqVD6c3Lsf 2KHw== 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=unJYytu4O0dqblmBJBAMygfMBORPbTKhrPWWfUjkt/Q=; b=udj6wxS2vsT8BLCnLk60X/LXkzZsXNdsSamL5eEcGnNdT2iWuej7urVICWf+BjqxRR J/mUFcJ80vaTI9lL/4aZJrWCxa3obN04GA1av6NeoxsZuZ8TXCUi6mZ+wUxdnOIvTlAE 1KcKzcnbm1Z3c2a/UMvw5ifE2o6nbkTGC7sWRgb8RAbk46UYKoPGr6TwdJ0jV8PywaRR tiBzi80eqMvQfMTCc9tPa//ttzVVWbPdmfQ2DcRUCtoUYlFISqRHdQNbNL4E7WFOEU39 G02Ts2eGaZcPZmzFamAR61Encsn9QrIWlI9dbd02VMH8BUJGUjRYkD3yJr6yydn/jcLF zhhA== X-Gm-Message-State: AMke39m3ASmNIE5xcH0ctSN1mOZd8NmQjdb19XXyj1+13S48SNtoTyPEQYVXkGAcCWtBWfdWpSoGMqBSpGcc3w== X-Received: by 10.159.33.4 with SMTP id 4mr9248451uab.156.1488223432034; Mon, 27 Feb 2017 11:23:52 -0800 (PST) Original-Received: by 10.176.71.214 with HTTP; Mon, 27 Feb 2017 11:23:21 -0800 (PST) In-Reply-To: <83fuizphp8.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:129898 Archived-At: On 27 February 2017 at 19:16, Eli Zaretskii wrote: >> From: Richard Copley >> Date: Mon, 27 Feb 2017 19:04:23 +0000 >> Cc: Ken Brown , 25875@debbugs.gnu.org >> >> >> > +static LRESULT WINAPI >> >> > +DebugSendMessage (HWND hWnd, UINT Msg, WPARAM wParam, LPARAM lParam) >> >> > +{ >> >> > + return SendMessageTimeoutA (hWnd, Msg, wParam, lParam, 0, 100, NULL); >> >> > +} >> >> > + >> >> > /* Start update of window W. */ >> >> > >> >> > static void >> >> > >> >> > Ken >> >> >> >> Sorry Ken, I can't sabotage myself like that, I have work to do. >> > >> > This could be a misunderstanding: the above change is not supposed to >> > sabotage anything, it's supposed to be a 100% compatible change for >> > the current behavior when all threads are running, and also provide a >> > "fire escape" when the addressee of the message is for some reason >> > stuck, as we think happens in your scenario. >> >> >From the docs for SendMessageTimeout: >> "If the function succeeds, the return value is nonzero.". >> We're going to cast that to HWND and pretend it's a scrollbar? > > No, the result is returned in the last argument of SendMessageTimeout > (which shouldn't be NULL for getting hold of that, of course). My point exactly.