GNU bug report logs -
#569
23.0.60; OSX: make-network-process reuses existing file descriptors
Previous Next
Reported by: Markus Triska <markus.triska <at> gmx.at>
Date: Thu, 17 Jul 2008 14:30:04 UTC
Severity: normal
Merged with 562
Done: Chong Yidong <cyd <at> stupidchicken.com>
Bug is archived. No further changes may be made.
To add a comment to this bug, you must first unarchive it, by sending
a message to control AT debbugs.gnu.org, with unarchive 569 in the body.
You can then email your comments to 569 AT debbugs.gnu.org in the normal way.
Toggle the display of automated, internal messages from the tracker.
Report forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#569
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
Markus Triska <markus.triska <at> gmx.at>
:
New bug report received and forwarded. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #5 received at submit <at> emacsbugs.donarmstrong.com (full text, mbox):
> 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);
Merged 562 569.
Request was from
Glenn Morris <rgm <at> gnu.org>
to
control <at> emacsbugs.donarmstrong.com
.
(Thu, 17 Jul 2008 22:20:04 GMT)
Full text and
rfc822 format available.
Information forwarded to
bug-submit-list <at> lists.donarmstrong.com, Emacs Bugs <bug-gnu-emacs <at> gnu.org>
:
bug#569
; Package
emacs
.
Full text and
rfc822 format available.
Acknowledgement sent to
YAMAMOTO Mitsuharu <mituharu <at> math.s.chiba-u.ac.jp>
:
Extra info received and forwarded to list. Copy sent to
Emacs Bugs <bug-gnu-emacs <at> gnu.org>
.
Full text and
rfc822 format available.
Message #12 received at 569 <at> emacsbugs.donarmstrong.com (full text, mbox):
>>>>> On Thu, 17 Jul 2008 16:22:25 +0200, Markus Triska <markus.triska <at> gmx.at> said:
>> 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:
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.
YAMAMOTO Mitsuharu
mituharu <at> math.s.chiba-u.ac.jp
bug archived.
Request was from
Debbugs Internal Request <don <at> donarmstrong.com>
to
internal_control <at> emacsbugs.donarmstrong.com
.
(Thu, 11 Sep 2008 14:24:07 GMT)
Full text and
rfc822 format available.
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.