| delorie.com/archives/browse.cgi | search |
| Mailing-List: | contact cygwin-help AT cygwin DOT com; run by ezmlm |
| List-Subscribe: | <mailto:cygwin-subscribe AT cygwin DOT com> |
| List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
| List-Post: | <mailto:cygwin AT cygwin DOT com> |
| List-Help: | <mailto:cygwin-help AT cygwin DOT com>, <http://sources.redhat.com/ml/#faqs> |
| 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 <corinna-cygwin AT cygwin DOT com> |
| 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: | <OF74D62281 DOT E9AD858D-ON80256CDE DOT 005B17A0 AT friendsfirst DOT ie> |
| Mime-Version: | 1.0 |
| In-Reply-To: | <OF74D62281.E9AD858D-ON80256CDE.005B17A0@friendsfirst.ie> |
| 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/
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |