Mailing-List: contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin AT sources DOT redhat DOT com From: Scott Atwood Message-Id: <200110260107.SAA16481@Xenon.Stanford.EDU> Subject: Re: 30 second startup delay on Cygwin programs from SYSTEM account To: cygwin AT cygwin DOT com Date: Thu, 25 Oct 2001 18:07:48 -0700 (PDT) In-Reply-To: from "atwood" at Oct 25, 2001 05:55:57 PM X-Mailer: ELM [version 2.5 PL2] MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit > I am running Cygwin 1.3.3 on Windows 2000 Server, and I have noticed a > strange problem. Whenever I try to start a Cygwin process from a windows > cmd shell as the user SYSTEM, there is an approximately 30 second delay > before the process starts. If I have started a bash process as SYSTEM, > subesequent processes started from within bash start normally. Cygwin > processes always start normally for the Administrator user. > > I have looked in the FAQ and the documentation, searched Google, and > searched the Cygwin mailing list archive, and I couldn't find any > mention of this problem. 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. Here is the same section of "strace bash" for user Administrator: 2980 255639 [main] bash 1708 internal_getlogin: GetUserName() = Administrator 831 256470 [main] bash 1708 internal_getlogin: User: Administrator, Domain: C HARON, Logon Server: CHARON 305105 561575 [main] bash 1708 internal_getlogin: Domain: CHARON, Logon Server: CHARON, Windows Username: Administrator And again as user SYSTEM from within an already running bash process: 1435 282240 [main] bash 1212 internal_getlogin: GetUserName() = SYSTEM 365580 647820 [main] bash 1212 internal_getlogin: Domain: (null), Logon Server: CHARON, Windows Username: SYSTEM I downloaded the cygwin 1.3.3 source code, and I was able to isolate these lines of output as coming from the internal_getlogin method in the winsup/cygwin/uinfo.cc file, somewhere between line 41 and 114. I don't know enough about the structure of the cygwin DLL to be able to isolate the problem any closer than that, since there are many method calls in this region of the code. -Scott -- Scott Atwood atwood AT cs DOT stanford DOT edu PGP key fingerprint: 2852 FAE0 B0BB FE52 7002 1019 4D48 78B3 6FF0 A89F -- 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/