On Mon, Mar 03, 2003 at 04:37:07PM +0000, [EMAIL PROTECTED] 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:[EMAIL PROTECTED]
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/

Reply via email to