From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jarek Czekalski Newsgroups: gmane.emacs.devel Subject: Re: cosmic timeout Date: Sun, 03 Nov 2013 11:01:54 +0100 Message-ID: <52761F12.5090204@poczta.onet.pl> References: <527588AF.2070206@poczta.onet.pl> <83ob629mkb.fsf@gnu.org> <5275FE56.7010302@poczta.onet.pl> <87wqkprhqk.fsf@uwakimon.sk.tsukuba.ac.jp> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1383472871 30284 80.91.229.3 (3 Nov 2013 10:01:11 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2013 10:01:11 +0000 (UTC) Cc: emacs-devel@gnu.org To: "Stephen J. Turnbull" Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 03 11:01:16 2013 Return-path: Envelope-to: ged-emacs-devel@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 1VcuUd-0001a8-W6 for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2013 11:01:16 +0100 Original-Received: from localhost ([::1]:44597 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcuUd-0004rH-JO for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2013 05:01:15 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:57282) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcuUV-0004od-TT for emacs-devel@gnu.org; Sun, 03 Nov 2013 05:01:13 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VcuUQ-000422-CP for emacs-devel@gnu.org; Sun, 03 Nov 2013 05:01:07 -0500 Original-Received: from smtpo15.poczta.onet.pl ([213.180.142.146]:36499) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VcuUQ-00041e-1n for emacs-devel@gnu.org; Sun, 03 Nov 2013 05:01:02 -0500 Original-Received: from [192.168.17.5] (cj.e-siemianowice.pl [95.215.234.30]) (using TLSv1 with cipher ECDHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) (Authenticated sender: jarekczek@poczta.onet.pl) by smtp.poczta.onet.pl (Onet) with ESMTPSA id 3dCCMG131fzYkjGj; Sun, 3 Nov 2013 11:00:57 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=poczta.onet.pl; s=2011; t=1383472859; bh=dMgWDZKIice8dh0e02g/GEuMDmILmDaTE90ZAhzJIqw=; h=Message-ID:Date:From:MIME-Version:To:CC:Subject:References: In-Reply-To:Content-Type:Content-Transfer-Encoding; b=C4AdvpgI1UCan7cUcEvxuT48Tp9znAavX4K3T/yc2QUwRsCpeNns2dsrNlLHsF1qh KbBhPRzuwZL24/992uTwoa9+1jt4LisExkFewZ+IKVw9wtj+OtSryE2F7xJn06PvIC Non9V22YeX1W/XCPLk3voEHD3qHHdTBmgj9YJQPA= User-Agent: Mozilla/5.0 (X11; Linux i686; rv:24.0) Gecko/20100101 Thunderbird/24.0.1 In-Reply-To: <87wqkprhqk.fsf@uwakimon.sk.tsukuba.ac.jp> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 213.180.142.146 X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:164894 Archived-At: W dniu 11/03/2013 09:50 AM, Stephen J. Turnbull pisze: > > I will investigate, why the infinite wait is demanded by Emacs, but if > > you like to answer the above question in advance, that helps. > > It's not an infinite wait. It's Emacs blocking on *any* input. The > function should return as soon as there's input. I identified this infinite waiting for input: key = read_char (prevent_redisplay ? -2 : NILP (prompt), current_binding, last_nonmenu_event, &used_mouse_menu, NULL); where NULL means no timeout. keyboard.c 9072 I don't call it an error, but just to make a point of a cosmic timeout. It originates from here. The clue of the problem is different, because even when timeout is set to a number of 30 seconds, still wait_reading_process_output gets blocked until timeout expires. I will dig more into it and definitely finish it in some way, perhaps reporting a bug in something. Jarek