From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Eli Zaretskii Newsgroups: gmane.emacs.bugs Subject: bug#16737: Question about wait_reading_process_output Date: Mon, 15 Jun 2015 17:51:07 +0300 Message-ID: <831thdowis.fsf@gnu.org> References: <874mmmbi2p.fsf@linaro.org> Reply-To: Eli Zaretskii NNTP-Posting-Host: plane.gmane.org X-Trace: ger.gmane.org 1434379946 21984 80.91.229.3 (15 Jun 2015 14:52:26 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Mon, 15 Jun 2015 14:52:26 +0000 (UTC) Cc: 16737@debbugs.gnu.org, alex.bennee@linaro.org To: Stefan Monnier Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Mon Jun 15 16:52:16 2015 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([208.118.235.17]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1Z4VkD-0005ZT-Bm for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jun 2015 16:52:13 +0200 Original-Received: from localhost ([::1]:34636 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4VkC-0003yi-Pi for geb-bug-gnu-emacs@m.gmane.org; Mon, 15 Jun 2015 10:52:12 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:44506) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Vk8-0003vW-53 for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 10:52:09 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Z4Vk3-0001Lq-6K for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 10:52:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:40375) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Z4Vk3-0001Lh-3J for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 10:52:03 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1Z4Vk2-0006d9-Eq for bug-gnu-emacs@gnu.org; Mon, 15 Jun 2015 10:52:02 -0400 X-Loop: help-debbugs@gnu.org Resent-From: Eli Zaretskii Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Mon, 15 Jun 2015 14:52:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 16737 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: moreinfo Original-Received: via spool by 16737-submit@debbugs.gnu.org id=B16737.143437989325452 (code B ref 16737); Mon, 15 Jun 2015 14:52:02 +0000 Original-Received: (at 16737) by debbugs.gnu.org; 15 Jun 2015 14:51:33 +0000 Original-Received: from localhost ([127.0.0.1]:54835 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4VjY-0006cR-K4 for submit@debbugs.gnu.org; Mon, 15 Jun 2015 10:51:32 -0400 Original-Received: from mtaout20.012.net.il ([80.179.55.166]:44505) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Z4VjV-0006c8-1F for 16737@debbugs.gnu.org; Mon, 15 Jun 2015 10:51:30 -0400 Original-Received: from conversion-daemon.a-mtaout20.012.net.il by a-mtaout20.012.net.il (HyperSendmail v2007.08) id <0NPZ00D00QCSUE00@a-mtaout20.012.net.il> for 16737@debbugs.gnu.org; Mon, 15 Jun 2015 17:51:22 +0300 (IDT) Original-Received: from HOME-C4E4A596F7 ([87.69.4.28]) by a-mtaout20.012.net.il (HyperSendmail v2007.08) with ESMTPA id <0NPZ00DBAQLMK2A0@a-mtaout20.012.net.il>; Mon, 15 Jun 2015 17:51:22 +0300 (IDT) In-reply-to: X-012-Sender: halo1@inter.net.il X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.15 Precedence: list X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x X-Received-From: 140.186.70.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-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:103960 Archived-At: > From: Stefan Monnier > Date: Sun, 14 Jun 2015 23:47:42 -0400 > Cc: emacs-devel > > > I've been digging into the code trying to get an idea of why bug#16737 > > fires. My question is where in wait_reading_process_output does it > > ensure the various terminal socket reads are run? > > I see noone replied yet. I can't really help you because I don't know > this code at all, but I really hope someone else will come along to > help, I will try. The terminal socket reads are run in gobble_input, which is called from detect_input_pending (via a few intermediaries). Emacs calls detect_input_pending when the pselect call in wait_reading_process_output finds that some input has arrived, and wait_reading_process_output was called with READ_KBD or WAIT_FOR_CELL arguments having values that tell it to do so. Does this answer your question?