Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <BF35D9C143BCCC4EB63181B67C9320C804DEA4@serv-075.icon-germany.local>
From: Heribert Dahms <heribert_dahms@icon-scm.com>
To: "'Robert Collins'" <robert.collins@itdomain.com.au>,
   Scott Atwood
	 <atwood@CS.Stanford.EDU>
Cc: cygwin@cygwin.com
Subject: RE: 30 second startup delay on Cygwin programs from SYSTEM accoun
	t
Date: Tue, 30 Oct 2001 22:48:28 +0100
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2653.19)
Content-Type: text/plain

Hi,

so would it make sense to bypass domain stuff for LocalSystem
by extending the condition in internal_getlogin at line 47
(between the two debug_printf's below) with sth like:

if (wincap.has_security () && strcmp(username, "SYSTEM")) ...

Bye, Heribert (heribert_dahms@icon-scm.com)

> -----Original Message-----
> From:	Robert Collins [SMTP:robert.collins@itdomain.com.au]
> Sent:	Tuesday, October 30, 2001 01:00
> To:	Scott Atwood
> Cc:	cygwin@cygwin.com
> Subject:	Re: 30 second startup delay on Cygwin programs from SYSTEM
> account
> 
> On Fri, 2001-10-26 at 11:07, Scott Atwood wrote:
>  
> > I ran "strace bash" as user SYSTEM and here is an excerpt of the output.
> > 
> >  2949  226918 [main] bash 1428 internal_getlogin: GetUserName() = SYSTEM
> > 30450200 30677118 [main] bash 1428 internal_getlogin: Domain: (null),
> Logon Serv
> > er: CHARON, Windows Username: SYSTEM
> > 
> > The output paused for about 30 seconds after the first line printed, and
> > before the second line printed.
> 
> Right, here's whats happening:
> SYSTEM doesn't belong to any network groups - it's local only, but
> Cygwin is trying to find out it's network data - such as the home
> domain.
> 
> Cygwin spawned/forked/execed process's can inherit that data in the
> cygwin heap IIRC. Which is why no delay is seen - it's been optimised
> away. But there would be a 30 second delay firing up bash.
> 
> As for why the 30 second delay in the first place, what's your system
> config:
> Are you a member of a win2k AD or an NT4 domain?
> Are you running NBT?
> Are you running NTLM?
> Are you running the Server process?
> Are you running the workstation process?
> 
> Cheers,
> Rob
> 
> 
> --
> 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/

--
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/

