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 Message-Id: <5.2.0.9.2.20030303085919.028faea8@pop3.cris.com> X-Sender: rrschulz AT pop3 DOT cris DOT com Date: Mon, 03 Mar 2003 09:08:06 -0800 To: cygwin AT cygwin DOT com From: Randall R Schulz Subject: Re: "hostname" takes 3.5 seconds In-Reply-To: Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii"; format=flowed Niall, This is not directly relevant, but it might hint at or suggest something you could investigate. I found that when I enabled a new network device (a virtual network adaptor provided by VMware) that automatic dialing (usually in response to a DNS request) no longer caused the dial to be initiated immediately. Instead there's a delay of a few seconds before auto-dial is initiated. So perhaps there's something about the configuration of network adaptors or your DNS settings that are causing this delay? Realize that I don't know anything about how the system call(s) underlying the primary function of Cygwin's hostname command operate. However, if the call were unconditionally extracting local host name information there'd be no opportunity for a delay, right? That brings up another thing. Are you invoking Cygwin hostname or Windows hostname? On Win2K, at least, both exist. On my system, both respond essentially immediately (I tested only with a dial-in connection active). Randall Schulz At 08:37 2003-03-03, Niall DOT Smart AT friendsfirst DOT ie wrote: >Anyone know why calling hostname takes 3.5 seconds? -- 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/