From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: "Stephen J. Turnbull" Newsgroups: gmane.emacs.devel Subject: Re: cosmic timeout Date: Sun, 03 Nov 2013 17:50:59 +0900 Message-ID: <87wqkprhqk.fsf@uwakimon.sk.tsukuba.ac.jp> References: <527588AF.2070206@poczta.onet.pl> <83ob629mkb.fsf@gnu.org> <5275FE56.7010302@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=utf-8 X-Trace: ger.gmane.org 1383468677 25897 80.91.229.3 (3 Nov 2013 08:51:17 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Sun, 3 Nov 2013 08:51:17 +0000 (UTC) Cc: emacs-devel@gnu.org To: Jarek Czekalski Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Sun Nov 03 09:51:20 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 1VctOy-0003xY-Ge for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2013 09:51:20 +0100 Original-Received: from localhost ([::1]:44444 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VctOy-0004ER-1k for ged-emacs-devel@m.gmane.org; Sun, 03 Nov 2013 03:51:20 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:49105) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VctOq-0004EL-BF for emacs-devel@gnu.org; Sun, 03 Nov 2013 03:51:17 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VctOk-0002Rl-RJ for emacs-devel@gnu.org; Sun, 03 Nov 2013 03:51:12 -0500 Original-Received: from mgmt2.sk.tsukuba.ac.jp ([130.158.97.224]:53358) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VctOk-0002R6-GZ for emacs-devel@gnu.org; Sun, 03 Nov 2013 03:51:06 -0500 Original-Received: from uwakimon.sk.tsukuba.ac.jp (uwakimon.sk.tsukuba.ac.jp [130.158.99.156]) by mgmt2.sk.tsukuba.ac.jp (Postfix) with ESMTP id C071697069B; Sun, 3 Nov 2013 17:50:59 +0900 (JST) Original-Received: by uwakimon.sk.tsukuba.ac.jp (Postfix, from userid 1000) id B3E4E1A3508; Sun, 3 Nov 2013 17:50:59 +0900 (JST) In-Reply-To: <5275FE56.7010302@poczta.onet.pl> X-Mailer: VM undefined under 21.5 (beta34) "kale" 182d01410b8d XEmacs Lucid (x86_64-unknown-linux) X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.6.x X-Received-From: 130.158.97.224 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:164891 Archived-At: Jarek Czekalski writes: > Findings are that gtk gets stuck in all threads waiting on poll-like > functions. If you mean the OS poll() function, X.org has historically had a bug (in true X.org fashion, they say it's not their job to keep promises if other software might be buggy) where _XtWaitForSomething() can infloop in non-blocking mode. I forget whether this shows up with poll() or with select(). https://bugs.freedesktop.org/show_bug.cgi?id=20048 for more info. > 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 would check for a bug like the above in GTK.