delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2003/10/09/21:53:09

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
Message-ID: <3F861121.3080804@adelaide.edu.au>
Date: Fri, 10 Oct 2003 11:23:37 +0930
From: Milton Woods <milton DOT woods AT adelaide DOT edu DOT au>
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 (ax)
X-Accept-Language: en-us, en
MIME-Version: 1.0
To: cygwin AT cygwin DOT com
Subject: Pause after Calling ExitProcess
Note-from-DJ: This may be spam

Greetings,

I have found that some external programs invoked from a shell take a 
long time to return control to the shell on exit. For example, typing 
'hostname<enter>' at the command prompt displays a response within about 
1 second, but the prompt does not appear for another 3 seconds (on a 
1.6GHz P4). When I run 'strace hostname', I notice that the delay occurs 
after the statement

2251 1091020 [main] hostname 1084 _pinfo::exit: Calling ExitProcess 0

Similar delays occur for a range of programs, such as shells and 
editors. The delays can significantly increase compilation times when 
multiple shell commands are issued from make, to the point that average 
CPU utilisation is about 50% for programs composed of many small routines.

The delays do not occur for all programs. Small programs such as ps and 
cat (which appear to be external), and larger programs such as make, are 
quite snappy.

I have not yet found a way to diagnose what is happening between 
ExitProcess and the shell prompt. If I try to run 'strace bash' then 
type 'hostname<enter>', the pause still occurs at the same point, and no 
extra information is displayed.

There are no obvious causes for the delays. In particular, there is no 
active virus scanner, and PATH does not include any network shares. I 
have a Novell client installed, but I am not logged into any servers. I 
have tried uninstalling Cygwin (including registry entries), but the 
problem occurs even with a fresh installation.

I look forward to your suggestions.

Milton Woods.



--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019