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#18705: 24.3.93; Hang in ns_select -> [NSApp run] -> oo Date: Thu, 16 Oct 2014 07:36:18 +0200 Message-ID: <3618E134-03E7-41A0-905F-1ECBA2763F74@swipnet.se> References: <20141013071339.GA29064@home.blackbean.org> <20141015185932.GA28148@home.blackbean.org> <19878B19-176E-4345-A5F7-CC1E005C63B7@swipnet.se> NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 (Mac OS X Mail 7.3 \(1878.6\)) Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 7bit X-Trace: ger.gmane.org 1413437845 29355 80.91.229.3 (16 Oct 2014 05:37:25 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 16 Oct 2014 05:37:25 +0000 (UTC) Cc: 18705@debbugs.gnu.org To: Jim Radford Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Oct 16 07:37:18 2014 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 1XedkU-0006r2-4p for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 07:37:18 +0200 Original-Received: from localhost ([::1]:48389 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XedkT-0002qQ-NO for geb-bug-gnu-emacs@m.gmane.org; Thu, 16 Oct 2014 01:37:17 -0400 Original-Received: from eggs.gnu.org ([2001:4830:134:3::10]:34012) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XedkK-0002pj-Kd for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 01:37:14 -0400 Original-Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1XedkE-000127-Dd for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 01:37:08 -0400 Original-Received: from debbugs.gnu.org ([140.186.70.43]:53564) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1XedkE-000123-9R for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 01:37:02 -0400 Original-Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.80) (envelope-from ) id 1XedkD-0000CY-SY for bug-gnu-emacs@gnu.org; Thu, 16 Oct 2014 01:37:02 -0400 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, 16 Oct 2014 05:37:01 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: followup 18705 X-GNU-PR-Package: emacs X-GNU-PR-Keywords: Original-Received: via spool by 18705-submit@debbugs.gnu.org id=B18705.1413437784717 (code B ref 18705); Thu, 16 Oct 2014 05:37:01 +0000 Original-Received: (at 18705) by debbugs.gnu.org; 16 Oct 2014 05:36:24 +0000 Original-Received: from localhost ([127.0.0.1]:45124 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1Xedjb-0000BU-Kg for submit@debbugs.gnu.org; Thu, 16 Oct 2014 01:36:24 -0400 Original-Received: from mailfe01.swip.net ([212.247.154.1]:33670 helo=swip.net) by debbugs.gnu.org with esmtp (Exim 4.80) (envelope-from ) id 1XedjZ-0000BI-0p for 18705@debbugs.gnu.org; Thu, 16 Oct 2014 01:36:22 -0400 X-T2-Spam-Status: No, hits=0.8 required=5.0 tests=BAYES_50 Original-Received: from hosdjarv.se (account mj138573@tele2.se [46.59.42.57] verified) by mailfe01.swip.net (CommuniGate Pro SMTP 5.4.4) with ESMTPA id 537390159; Thu, 16 Oct 2014 07:36:19 +0200 In-Reply-To: <19878B19-176E-4345-A5F7-CC1E005C63B7@swipnet.se> X-Mailer: Apple Mail (2.1878.6) 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:94576 Hi. Don't remove the debbugs address. 15 okt 2014 kl. 20:59 skrev Jim Radford : > > What doesn't make sense is running two main loops in the same thread > and trying to alternatively spin on one (EmacsApp run) and then the > other (select) without knowing which might produce the next event. > That is guaranteed to fail, as I am seeing. Probably. That is why we don't do that. > > I'm going to guess that you can't register file descriptors with the > Cocoa main loop nor get a file descriptor from it that you can pass to > select? Could we instead spawn a thread just to run select() in a > loop, passing the results to the main thread as a Cocoa event? Or > visa versa? We do that. Jan D.