From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: YAMAMOTO Mitsuharu Newsgroups: gmane.emacs.bugs Subject: bug#554: OSX: with-temp-buffer kills unrelated processes Date: Thu, 17 Jul 2008 10:51:39 +0900 Organization: Faculty of Science, Chiba University Message-ID: References: <20080713173957.65071954A3D@mt-computer.local> Reply-To: YAMAMOTO Mitsuharu , 554@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 (generated by SEMI 1.14.6 - "Maruoka") Content-Type: text/plain; charset=US-ASCII X-Trace: ger.gmane.org 1216260453 2369 80.91.229.12 (17 Jul 2008 02:07:33 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Thu, 17 Jul 2008 02:07:33 +0000 (UTC) Cc: 554@emacsbugs.donarmstrong.com To: Markus Triska Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Thu Jul 17 04:08:21 2008 Return-path: Envelope-to: geb-bug-gnu-emacs@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1KJIup-0005Eo-IO for geb-bug-gnu-emacs@m.gmane.org; Thu, 17 Jul 2008 04:08:19 +0200 Original-Received: from localhost ([127.0.0.1]:44854 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJItw-0007lB-Qp for geb-bug-gnu-emacs@m.gmane.org; Wed, 16 Jul 2008 22:07:24 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KJIts-0007kC-Ov for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2008 22:07:20 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KJIts-0007jM-92 for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2008 22:07:20 -0400 Original-Received: from [199.232.76.173] (port=54184 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KJItr-0007jG-Ti for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2008 22:07:19 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:60745) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KJItr-0002g4-C7 for bug-gnu-emacs@gnu.org; Wed, 16 Jul 2008 22:07:19 -0400 Original-Received: from rzlab.ucr.edu (rzlab.ucr.edu [127.0.0.1]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6H27HhM003258; Wed, 16 Jul 2008 19:07:17 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6H203ZM032693; Wed, 16 Jul 2008 19:00:03 -0700 X-Loop: don@donarmstrong.com Resent-From: YAMAMOTO Mitsuharu Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Thu, 17 Jul 2008 02:00:03 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 554 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by 554-submit@emacsbugs.donarmstrong.com id=B554.121625950331473 (code B ref 554); Thu, 17 Jul 2008 02:00:03 +0000 Original-Received: (at 554) by emacsbugs.donarmstrong.com; 17 Jul 2008 01:51:43 +0000 Original-Received: from mathmail.math.s.chiba-u.ac.jp (ntp.math.s.chiba-u.ac.jp [133.82.132.2]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6H1penJ031467 for <554@emacsbugs.donarmstrong.com>; Wed, 16 Jul 2008 18:51:41 -0700 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 862742C40; Thu, 17 Jul 2008 10:51:39 +0900 (JST) In-Reply-To: User-Agent: Wanderlust/2.14.0 (Africa) SEMI/1.14.6 (Maruoka) FLIM/1.14.8 =?UTF-8?Q?(Shij=C5=8D)?= APEL/10.6 Emacs/22.2.50 (sparc-sun-solaris2.8) MULE/5.0 (SAKAKI) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Wed, 16 Jul 2008 22:07:20 -0400 X-BeenThere: bug-gnu-emacs@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Bug reports for GNU Emacs, the Swiss army knife of text editors" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Errors-To: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.bugs:18742 Archived-At: >>>>> On Wed, 16 Jul 2008 17:27:47 +0200, Markus Triska said: > YAMAMOTO Mitsuharu writes: >> OK, close-on-exec seems to be usable for the `fork' case. How >> about the patch below? > Thank you very much; I've tested the following adapted version of > your patch with the latest CVS trunk of Emacs, and the problem seems > gone. Thanks for testing. Although whether _exit closes file descriptors or not is implementation-dependent, the current Emacs code seems to assume that it always does (in its supported platforms). If so, close before _exit and the changes to callproc.c in my previous patch can be removed. I'll install a simplified one later. YAMAMOTO Mitsuharu mituharu@math.s.chiba-u.ac.jp