Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Date: Mon, 3 Mar 2003 17:53:02 +0100 From: Corinna Vinschen To: cygwin AT cygwin DOT com Subject: Re: "hostname" takes 3.5 seconds Message-ID: <20030303165302.GO1193@cygbert.vinschen.de> Reply-To: cygwin AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com References: Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.4i On Mon, Mar 03, 2003 at 04:37:07PM +0000, Niall DOT Smart AT friendsfirst DOT ie wrote: > Anyone know why calling hostname takes 3.5 seconds? > > Most of the time seems to be spent in cygwin_gethostname and ExitProcess: > > 28 28924 [main] hostname 268 wsock_init: lpVendorInfo 0 > 1017292 1046216 [main] hostname 268 cygwin_gethostname: name ffwd10657 Hmm, doesn't happen for me. If you look into the source code you'll find that Cygwin isn't doing costly stuff: It just calls gethostname() from WinSock. Something's not quite correct with your settings I guess. Corinna -- Corinna Vinschen Please, send mails regarding Cygwin to Cygwin Developer mailto:cygwin AT cygwin DOT com Red Hat, Inc. -- Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple Bug reporting: http://cygwin.com/bugs.html Documentation: http://cygwin.com/docs.html FAQ: http://cygwin.com/faq/