From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Newsgroups: gmane.emacs.bugs Subject: bug#15801: it's a different revision, 112892 Date: Thu, 21 Nov 2013 07:00:49 +0100 Message-ID: <7A380DDA-E95E-4F8A-BEB9-2AB97C1319BB@swipnet.se> References: <5277EA95.4070001@poczta.onet.pl> <527A9D0D.6040207@poczta.onet.pl> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.0 \(1822\)) Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable X-Trace: ger.gmane.org 1385013738 31200 80.91.229.3 (21 Nov 2013 06:02:18 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 21 Nov 2013 06:02:18 +0000 (UTC) Cc: 15801@debbugs.gnu.org To: Jarek Czekalski Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Nov 21 07:02:22 2013 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 1VjNLH-0006rZ-6i for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2013 07:02:19 +0100 Original-Received: from localhost ([::1]:58688 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjNLG-0000iI-Kw for geb-bug-gnu-emacs@m.gmane.org; Thu, 21 Nov 2013 01:02:18 -0500 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:55415) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjNL8-0000i5-JW for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2013 01:02:15 -0500 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1VjNL0-0007HV-EY for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2013 01:02:10 -0500 Original-Received: from debbugs.gnu.org ([140.186.70.43]:49880) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1VjNL0-0007HR-Ab for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2013 01:02:02 -0500 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1VjNKz-0003xa-O0 for bug-gnu-emacs@gnu.org; Thu, 21 Nov 2013 01:02:01 -0500 X-Loop: help-debbugs@gnu.org Resent-From: Jan =?UTF-8?Q?Dj=C3=A4rv?= Original-Sender: "Debbugs-submit" Resent-CC: bug-gnu-emacs@gnu.org Resent-Date: Thu, 21 Nov 2013 06:02:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 15801 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 15801-submit@debbugs.gnu.org id=B15801.138501366215134 (code B ref 15801); Thu, 21 Nov 2013 06:02:01 +0000 Original-Received: (at 15801) by debbugs.gnu.org; 21 Nov 2013 06:01:02 +0000 Original-Received: from localhost ([127.0.0.1]:35666 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VjNK1-0003vs-OQ for submit@debbugs.gnu.org; Thu, 21 Nov 2013 01:01:02 -0500 Original-Received: from mailfe08.swip.net ([212.247.154.225]:33234 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1VjNJy-0003vV-M8 for 15801@debbugs.gnu.org; Thu, 21 Nov 2013 01:01:00 -0500 X-T2-Spam-Status: No, hits=0.0 required=5.0 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe08.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 455264556; Thu, 21 Nov 2013 07:00:50 +0100 In-Reply-To: <527A9D0D.6040207@poczta.onet.pl> X-Mailer: Apple Mail (2.1822) 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:80824 Archived-At: Hello. 6 nov 2013 kl. 20:48 skrev Jarek Czekalski : > First of all I apologize for giving the wrong revision number in my = previous report. >=20 > When I tried to isolate the piece of code that introduces problems, I = finally gave up. This all revision may be applied and all works. So I = did more binary search and finally I'm sure the one below is the right = revision. It seems like Emacs stops receiving SIGIO. If it is blocked or if Gtk+ = stole the signal handler I don't know yet. Jan D. >=20 > ------------------------------------------------------------ > revno: 112892 > committer: Jan D. > branch nick: trunk > timestamp: Sat 2013-06-08 10:48:52 +0200 > message: > * xgselect.c (xg_select): Remove call to window_system_available > and g_main_context_pending at the top, so Gdk events (i.e. file > notify) are processed when Emacs is started with -nw. >=20 > It's quite short: >=20 > =3D=3D=3D modified file 'src/xgselect.c' > @@ -44,9 +44,13 @@ >=20 > - if (! (window_system_available (NULL) > - && g_main_context_pending (context =3D g_main_context_default = ()))) > - return pselect (fds_lim, rfds, wfds, efds, timeout, sigmask); > + /* Do not try to optimize with an initial check with = g_main_context_pending > + and a call to pselect if it returns false. If Gdk has a timeout = for 0.01 > + second, and Emacs has a timeout for 1 second, = g_main_context_pending will > + return false, but the timeout will be 1 second, thus missing the = gdk > + timeout with a lot. */ > + > + context =3D g_main_context_default (); >=20 > When I apply the code removed in this revision to the current trunk, I = have a relief. No more freezing, as well as with my first fix that also = works. >=20 > Jarek >=20 >=20