bug-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#569: 23.0.60; OSX: make-network-process reuses existing file descrip


From: Markus Triska
Subject: bug#569: 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);






reply via email to

[Prev in Thread] Current Thread [Next in Thread]