From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.org!not-for-mail From: Alexander Kotelnikov Newsgroups: gmane.emacs.devel Subject: Re: make-network-process's gethostbyname usage Date: Tue, 21 Aug 2007 13:51:29 +0400 Organization: Global disintoxication Message-ID: <87hcmtrza6.fsf@myxomop.com> References: <87hcmueg90.fsf@myxomop.com> <87k5rpp9be.fsf@kfs-lx.testafd.dk> NNTP-Posting-Host: lo.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-Trace: sea.gmane.org 1187689917 32642 80.91.229.12 (21 Aug 2007 09:51:57 GMT) X-Complaints-To: usenet@sea.gmane.org NNTP-Posting-Date: Tue, 21 Aug 2007 09:51:57 +0000 (UTC) To: emacs-devel@gnu.org Original-X-From: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Tue Aug 21 11:51:56 2007 Return-path: Envelope-to: ged-emacs-devel@m.gmane.org Original-Received: from lists.gnu.org ([199.232.76.165]) by lo.gmane.org with esmtp (Exim 4.50) id 1INQOw-0000BN-TQ for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 11:51:55 +0200 Original-Received: from localhost ([127.0.0.1] helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INQOw-0000oI-Bt for ged-emacs-devel@m.gmane.org; Tue, 21 Aug 2007 05:51:54 -0400 Original-Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1INQOs-0000n6-SU for emacs-devel@gnu.org; Tue, 21 Aug 2007 05:51:50 -0400 Original-Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1INQOr-0000lE-42 for emacs-devel@gnu.org; Tue, 21 Aug 2007 05:51:50 -0400 Original-Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1INQOr-0000l9-23 for emacs-devel@gnu.org; Tue, 21 Aug 2007 05:51:49 -0400 Original-Received: from main.gmane.org ([80.91.229.2] helo=ciao.gmane.org) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1INQOq-0004lm-LF for emacs-devel@gnu.org; Tue, 21 Aug 2007 05:51:48 -0400 Original-Received: from list by ciao.gmane.org with local (Exim 4.43) id 1INQOh-0006vd-Gb for emacs-devel@gnu.org; Tue, 21 Aug 2007 11:51:39 +0200 Original-Received: from bridgkvest.cust.smartspb.net ([80.249.179.82]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2007 11:51:39 +0200 Original-Received: from sacha by bridgkvest.cust.smartspb.net with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Tue, 21 Aug 2007 11:51:39 +0200 X-Injected-Via-Gmane: http://gmane.org/ Mail-Followup-To: emacs-devel@gnu.org Original-Lines: 29 Original-X-Complaints-To: usenet@sea.gmane.org X-Gmane-NNTP-Posting-Host: bridgkvest.cust.smartspb.net Mail-Copies-To: never User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.1 (gnu/linux) Cancel-Lock: sha1:AYqZ/q3CJe5k8Rv8MaarJMrlUy8= X-Detected-Kernel: Linux 2.6, seldom 2.4 (older, 4) X-BeenThere: emacs-devel@gnu.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "Emacs development discussions." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Original-Sender: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Errors-To: emacs-devel-bounces+ged-emacs-devel=m.gmane.org@gnu.org Xref: news.gmane.org gmane.emacs.devel:76879 Archived-At: >>>>> On Tue, 21 Aug 2007 10:43:01 +0200 >>>>> "KFS" == Kim F Storm wrote: KFS> KFS> Alexander Kotelnikov writes: >> Hello. >> >> make-network-process calles gethostbyname, but never calls >> res_init. The problem, which appears is: if contents of >> /etc/resolv.conf was changed old dns servers are unavailable, >> gethostbyname still tries them, not new ones. So this bug is pretty >> much the same as http://bugs.debian.org/438680 (which has a patch). KFS> KFS> Is res_init available on all platforms which have gethostbyname ? I am alsmost sure, no. BTW I think on my linux box getaddrinfo() is used instead of gethostbyname(), but anyway, res_init is needed. And its presence really helps: made a hack on emacs22-22.1+1 yesterday at home and today I had not had to restart my emacs with gnus in the office. KFS> Otherwise, we need to arrange for configure to test for its KFS> existence... IIRC my fgrep res_init found some occurrences in autoconf/autoheader emacs files. -- Alexander Kotelnikov Saint-Petersburg, Russia