GNU bug report logs - #562
23.0.60; OSX: make-network-process reuses existing file descriptors

Previous Next

Package: emacs;

Reported by: Markus Triska <markus.triska <at> gmx.at>

Date: Tue, 15 Jul 2008 11:40:04 UTC

Severity: normal

Merged with 569

Done: Chong Yidong <cyd <at> stupidchicken.com>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (Emacs bug Tracking System)
To: Chong Yidong <cyd <at> stupidchicken.com>
Subject: bug#569: marked as done (23.0.60; OSX: make-network-process 
 reuses existing file descriptors)
[Message part 1 (text/plain, inline)]
Your message dated Wed, 13 Aug 2008 20:54:20 -0400
with message-id <87vdy4o1qb.fsf <at> stupidchicken.com>
and subject line Re: 23.0.60; OSX: make-network-process reuses existing file descriptors
has caused the Emacs bug report #562,
regarding 23.0.60; OSX: make-network-process reuses existing file descriptors
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact don <at> donarmstrong.com
immediately.)


-- 
562: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=562
Emacs Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Markus Triska <markus.triska <at> gmx.at>
To: emacs-pretest-bug <at> gnu.org
Subject: Re: 23.0.60; OSX: make-network-process reuses existing file descriptors
Date: Thu, 17 Jul 2008 16:22:25 +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);


[Message part 3 (message/rfc822, inline)]
From: Chong Yidong <cyd <at> stupidchicken.com>
To: YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
Cc: Markus Triska <markus.triska <at> gmx.at>, 562-done <at> debbugs.gnu.org
Subject: Re: 23.0.60; OSX: make-network-process reuses existing file descriptors
Date: Wed, 13 Aug 2008 20:54:20 -0400
> > 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:
>
> You can comment it out on Mac OS X, because calling `res_init' does
> not make sense at all on that platform.  Neither does linking
> libresolv.
>
>   http://lists.gnu.org/archive/html/emacs-devel/2007-11/msg01467.html
>   http://lists.gnu.org/archive/html/emacs-devel/2007-10/msg01254.html
>
> So, it turns out to be not only meaningless, but also harmful on a
> particular version (10.4) of Mac OS X.

I've undef'ed HAVE_LIBRESOLV and HAVE_RES_INIT in s/darwin.h, as you
suggested.  Thanks.


This bug report was last modified 16 years and 281 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.