unofficial mirror of bug-gnu-emacs@gnu.org 
 help / color / mirror / code / Atom feed
From: Markus Triska <markus.triska@gmx.at>
To: emacs-pretest-bug@gnu.org
Subject: bug#569: 23.0.60; OSX: make-network-process reuses existing file descriptors
Date: Thu, 17 Jul 2008 16:22:25 +0200	[thread overview]
Message-ID: <m163r4io9q.fsf@gmx.at> (raw)
In-Reply-To: <m18ww3crfn.fsf@pnsgw3-client030.demo.tuwien.ac.at> (Markus Triska's message of "Tue, 15 Jul 2008 13:33:48 +0200")


> This is because p2 and p3 are both created with infd=outfd=0, thus
> closing the channel for p2 also closes that of p3.

Commenting out a res_init call in process.c makes this go away for me. I
do not know what other consequences this has though:

diff --git a/src/process.c b/src/process.c
index b0bebeb..b5aebdc 100644
--- a/src/process.c
+++ b/src/process.c
@@ -3366,7 +3374,7 @@ usage: (make-network-process &rest ARGS)  */)
       hints.ai_protocol = 0;
 
 #ifdef HAVE_RES_INIT
-      res_init ();
+      /* res_init (); */
 #endif
 
       ret = getaddrinfo (SDATA (host), portstring, &hints, &res);






  reply	other threads:[~2008-07-17 14:22 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <87vdy4o1qb.fsf@stupidchicken.com>
2008-07-15 11:33 ` bug#562: 23.0.60; OSX: make-network-process reuses existing file descriptors Markus Triska
2008-07-17 14:22   ` Markus Triska [this message]
2008-07-18  3:49     ` bug#569: " YAMAMOTO Mitsuharu
2008-08-14  1:00     ` bug#569: marked as done (23.0.60; OSX: make-network-process reuses existing file descriptors) Emacs bug Tracking System
2008-08-14  1:00   ` bug#562: " Emacs bug Tracking System

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/emacs/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=m163r4io9q.fsf@gmx.at \
    --to=markus.triska@gmx.at \
    --cc=569@emacsbugs.donarmstrong.com \
    --cc=emacs-pretest-bug@gnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
Code repositories for project(s) associated with this public inbox

	https://git.savannah.gnu.org/cgit/emacs.git

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).