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#25214: 26.0.50; Interacting with user from threads other than the primary Date: Tue, 18 Sep 2018 15:33:32 +0300 Message-ID: <83sh27f0ir.fsf@gnu.org> References: <837f6z9a4x.fsf@gnu.org> <87zhwguskw.fsf@gmx.de> <83fty8ge50.fsf@gnu.org> <87a7ofmd0w.fsf@gmx.de> NNTP-Posting-Host: blaine.gmane.org X-Trace: blaine.gmane.org 1537273992 20324 195.159.176.226 (18 Sep 2018 12:33:12 GMT) X-Complaints-To: usenet@blaine.gmane.org NNTP-Posting-Date: Tue, 18 Sep 2018 12:33:12 +0000 (UTC) Cc: 25214@debbugs.gnu.org, tom@tromey.com To: Michael Albinus Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Sep 18 14:33:08 2018 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 1g2FBj-00058s-4L for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2018 14:33:07 +0200 Original-Received: from localhost ([::1]:40146 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2FDp-0005Sk-Rm for geb-bug-gnu-emacs@m.gmane.org; Tue, 18 Sep 2018 08:35:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:53574) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2FDg-0005OI-Iw for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2018 08:35:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2FDc-0003Ct-32 for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2018 08:35:08 -0400 Original-Received: from debbugs.gnu.org ([208.118.235.43]:39512) by eggs.gnu.org with esmtps (TLS1.0:RSA_AES_128_CBC_SHA1:16) (Exim 4.71) (envelope-from ) id 1g2FDa-0003AM-46 for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2018 08:35:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1g2FDZ-0000Fs-ST for bug-gnu-emacs@gnu.org; Tue, 18 Sep 2018 08:35:01 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Tue, 18 Sep 2018 12:35:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 25214 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 25214-submit@debbugs.gnu.org id=B25214.1537274058928 (code B ref 25214); Tue, 18 Sep 2018 12:35:01 +0000 Original-Received: (at 25214) by debbugs.gnu.org; 18 Sep 2018 12:34:18 +0000 Original-Received: from localhost ([127.0.0.1]:43770 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2FCr-0000Et-Qb for submit@debbugs.gnu.org; Tue, 18 Sep 2018 08:34:18 -0400 Original-Received: from eggs.gnu.org ([208.118.235.92]:60201) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1g2FCq-0000Ei-RL for 25214@debbugs.gnu.org; Tue, 18 Sep 2018 08:34:17 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1g2FCk-0002IV-Mc for 25214@debbugs.gnu.org; Tue, 18 Sep 2018 08:34:11 -0400 Original-Received: from fencepost.gnu.org ([2001:4830:134:3::e]:43895) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1g2FCK-0001fE-Us; Tue, 18 Sep 2018 08:33:48 -0400 Original-Received: from [176.228.60.248] (port=4247 helo=home-c4e4a596f7) by fencepost.gnu.org with esmtpsa (TLS1.2:RSA_AES_256_CBC_SHA1:256) (Exim 4.82) (envelope-from ) id 1g2FCJ-00040P-49; Tue, 18 Sep 2018 08:33:44 -0400 In-reply-to: <87a7ofmd0w.fsf@gmx.de> (message from Michael Albinus on Tue, 18 Sep 2018 10:21:35 +0200) 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:150401 Archived-At: > From: Michael Albinus > Cc: 25214@debbugs.gnu.org, tom@tromey.com > Date: Tue, 18 Sep 2018 10:21:35 +0200 > > > (I'm not sure I understand why you thought we'd need bullet #2, btw. > > Once we interrupt the pselect call, the main thread should become > > stuck trying to take the global lock, so I don't think we need any > > trickery here, because the other thread, which is running, will have > > arranged for it to be the current thread.) > > Shouldn't there be several read_char calls in parallel? Bullet #2 is > just a machinery to switch to the main thread, that's all. If we could > manipulate the main thread from inside current thread, we wouldn't need this. I think we arrived at the conclusion that simultaneous calls to read_char should be avoided.