From mboxrd@z Thu Jan 1 00:00:00 1970 Path: main.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.devel Subject: Re: BLOCK_INPUT on Mac OS X Date: Wed, 08 Sep 2004 20:38:44 +0900 Organization: Faculty of Science, Chiba University Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Message-ID: References: NNTP-Posting-Host: deer.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.5 - "Awara-Onsen") Content-Type: text/plain; charset=US-ASCII X-Trace: sea.gmane.org 1094643574 5362 80.91.224.253 (8 Sep 2004 11:39:34 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Wed, 8 Sep 2004 11:39:34 +0000 (UTC) Cc: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Wed Sep 08 13:39:21 2004 Return-path: Original-Received: from lists.gnu.org ([199.232.76.165]) by deer.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 1C50nJ-00066J-00 for ; Wed, 08 Sep 2004 13:39:21 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C50sa-00080t-15 for ged-emacs-devel@m.gmane.org; Wed, 08 Sep 2004 07:44:48 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.33) id 1C50sQ-00080D-M9 for emacs-devel@gnu.org; Wed, 08 Sep 2004 07:44:38 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.33) id 1C50sN-0007z9-QW for emacs-devel@gnu.org; Wed, 08 Sep 2004 07:44:37 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.33) id 1C50sN-0007ys-Ma for emacs-devel@gnu.org; Wed, 08 Sep 2004 07:44:35 -0400 Original-Received: from [133.82.132.2] (helo=mathmail.math.s.chiba-u.ac.jp) by monty-python.gnu.org with esmtp (Exim 4.34) id 1C50mn-0001Bq-59 for emacs-devel@gnu.org; Wed, 08 Sep 2004 07:38:50 -0400 Original-Received: from church.math.s.chiba-u.ac.jp (church [133.82.132.36]) by mathmail.math.s.chiba-u.ac.jp (Postfix) with ESMTP id AADEE1A6395; Wed, 8 Sep 2004 20:38:44 +0900 (JST) Original-To: Stefan In-Reply-To: User-Agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.5 (Awara-Onsen) FLIM/1.14.5 (Demachiyanagi) APEL/10.6 Emacs/21.3.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 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 Xref: main.gmane.org gmane.emacs.devel:26883 X-Report-Spam: http://spam.gmane.org/gmane.emacs.devel:26883 >>>>> On Tue, 07 Sep 2004 08:27:59 -0400, Stefan said: >> It seems to be looping in `emacs_read' called from `Fcall_process'. >> Here's the backtrace. I believe this can also be reproducible in >> other "SIGIO systems". > Can you try the patch below? Beware, IIRC, if emacs_read is ever > called somewhere where BLOCK_INPUT is set, this could introduce > other problems. It didn't work for me on both Mac OS X and GNU/Linux. Actually, `read', which has not received any data, is silently restarted after processing a signal because: 1. That's a default behavior in BSD systems. (Mac OS X) 2. SA_RESTART is set in `sys_signal' if POSIX_SIGNALS is defined. (GNU/Linux) If SA_RESTART is not set in `sys_signal', synchronous processes can be quit on GNU/Linux (with your patch). But that breaks "Emacs mostly works better with restartable system services" (from a comment in `sys_signal'). YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp