From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Markus Triska Newsgroups: gmane.emacs.bugs,gmane.emacs.pretest.bugs Subject: bug#562: 23.0.60; OSX: make-network-process reuses existing file descriptors Date: Tue, 15 Jul 2008 13:33:48 +0200 Message-ID: Reply-To: Markus Triska , 562@emacsbugs.donarmstrong.com NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: ger.gmane.org 1216122495 3868 80.91.229.12 (15 Jul 2008 11:48:15 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Tue, 15 Jul 2008 11:48:15 +0000 (UTC) To: emacs-pretest-bug@gnu.org Original-X-From: bug-gnu-emacs-bounces+geb-bug-gnu-emacs=m.gmane.org@gnu.org Tue Jul 15 13:49:02 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 1KIj13-0000q3-9s for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 13:48:21 +0200 Original-Received: from localhost ([127.0.0.1]:52063 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIj0B-00056R-49 for geb-bug-gnu-emacs@m.gmane.org; Tue, 15 Jul 2008 07:47:27 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1KIj05-00056M-Rg for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 07:47:21 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1KIj03-00056A-6o for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 07:47:20 -0400 Original-Received: from [199.232.76.173] (port=49003 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1KIj02-000567-WB for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 07:47:19 -0400 Original-Received: from rzlab.ucr.edu ([138.23.92.77]:57013) by monty-python.gnu.org with esmtps (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1KIj02-0002s0-Hh for bug-gnu-emacs@gnu.org; Tue, 15 Jul 2008 07:47:18 -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 m6FBlGJP018866; Tue, 15 Jul 2008 04:47:16 -0700 Original-Received: (from debbugs@localhost) by rzlab.ucr.edu (8.13.8/8.13.8/Submit) id m6FBe5MO016667; Tue, 15 Jul 2008 04:40:05 -0700 X-Loop: don@donarmstrong.com Resent-From: Markus Triska Resent-To: bug-submit-list@donarmstrong.com Resent-CC: Emacs Bugs Resent-Date: Tue, 15 Jul 2008 11:40:04 +0000 Resent-Message-ID: Resent-Sender: don@donarmstrong.com X-Emacs-PR-Message: report 562 X-Emacs-PR-Package: emacs X-Emacs-PR-Keywords: Original-Received: via spool by submit@emacsbugs.donarmstrong.com id=B.121612164615336 (code B ref -1); Tue, 15 Jul 2008 11:40:04 +0000 Original-Received: (at submit) by emacsbugs.donarmstrong.com; 15 Jul 2008 11:34:06 +0000 Original-Received: from fencepost.gnu.org (fencepost.gnu.org [140.186.70.10]) by rzlab.ucr.edu (8.13.8/8.13.8/Debian-3) with ESMTP id m6FBY0wY015330 for ; Tue, 15 Jul 2008 04:34:02 -0700 Original-Received: from mail.gnu.org ([199.232.76.166]:33418 helo=mx10.gnu.org) by fencepost.gnu.org with esmtp (Exim 4.67) (envelope-from ) id 1KIimc-0005uU-NJ for emacs-pretest-bug@gnu.org; Tue, 15 Jul 2008 07:33:26 -0400 Original-Received: from Debian-exim by monty-python.gnu.org with spam-scanned (Exim 4.60) (envelope-from ) id 1KIin5-00008W-9E for emacs-pretest-bug@gnu.org; Tue, 15 Jul 2008 07:33:59 -0400 Original-Received: from mail.gmx.net ([213.165.64.20]:43229) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1KIin4-00007y-PK for emacs-pretest-bug@gnu.org; Tue, 15 Jul 2008 07:33:55 -0400 Original-Received: (qmail invoked by alias); 15 Jul 2008 11:33:51 -0000 Original-Received: from pnsgw3-client030.demo.tuwien.ac.at (EHLO pnsgw3-client030.demo.tuwien.ac.at) [128.131.196.30] by mail.gmx.net (mp058) with SMTP; 15 Jul 2008 13:33:51 +0200 X-Authenticated: #4064391 X-Provags-ID: V01U2FsdGVkX19g/0gGykhgywzRVjQAQsxsO1sySSWhWEZGf4HERq wymL9DAO60OepN Original-Received: by pnsgw3-client030.demo.tuwien.ac.at (Postfix, from userid 502) id 4BDAF97E627; Tue, 15 Jul 2008 13:33:48 +0200 (CEST) X-Y-GMX-Trusted: 0 X-FuHaFi: 0.53 X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 1) X-detected-kernel: by monty-python.gnu.org: Linux 2.6 (newer, 3) Resent-Date: Tue, 15 Jul 2008 07:47: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:18729 gmane.emacs.pretest.bugs:22729 Archived-At: When I evaluate the following form in "emacs -Q": (progn (setq p1 (make-network-process :name "p1" :host "www.fsf.org" :service 80)) (setq p2 (make-network-process :name "p2" :host "www.fsf.org" :service 80)) (setq p3 (make-network-process :name "p3" :host "www.fsf.org" :service 80)) (delete-process p2) (process-send-string p3 "there")) I get: Debugger entered--Lisp error: (file-error "writing to process" "bad file descriptor" #>) process-send-string(#> "hi") This is because p2 and p3 are both created with infd=outfd=0, thus closing the channel for p2 also closes that of p3. In GNU Emacs 23.0.60.1 (i386-apple-darwin8.11.1, GTK+ Version 2.12.9) of 2008-07-13 on mt-computer.local Windowing system distributor `The XFree86 Project, Inc', version 11.0.40400000 configured using `configure 'CFLAGS=-O0 -g'' Important settings: value of $LC_ALL: nil value of $LC_COLLATE: nil value of $LC_CTYPE: nil value of $LC_MESSAGES: nil value of $LC_MONETARY: nil value of $LC_NUMERIC: nil value of $LC_TIME: nil value of $LANG: nil value of $XMODIFIERS: nil locale-coding-system: nil default-enable-multibyte-characters: t