delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/10/20/07:55:21

X-Spam-Check-By: sourceware.org
MIME-Version: 1.0
Subject: Hanging of sh.exe under cygwin
Date: Fri, 20 Oct 2006 15:55:00 +0400
Message-ID: <A8427120F16F674DACE8EF1128D9365F011FB2BE@MAILSRV3.int.cboss.ru>
From: "Pavel Ivanoff" <Pavel DOT Ivanoff AT cbossgroup DOT com>
To: <cygwin AT cygwin DOT com>
X-SpamTest-Version: SMTP-Filter Version 2.0.0 [0124], KAS/Release
X-Spamtest-Info: Pass through
X-IsSubscribed: yes
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe AT cygwin DOT com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-help AT cygwin DOT com>, <http://sourceware.org/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
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id k9KBtIHZ028334

Hi all!

I have one very strange problem: I have a server executing long-playing
bash-script. And sometimes I suddenly find that server executes sh.exe
with some command from this script. And this sh.exe eats 50-100% of CPU
and hangs infinitely. When I execute the same command in the same
working directory in bash console, it works less than second and
returns. The strangest part of this that sometimes the command with
which sh hangs is in fact right part of a pipe in script. And it still
works while left part of pipe is already finished...
So I don't understand in this behaviour two things:
 - why this command is runned under sh.exe not bash.exe?
 - why is it hangs and eats 100% of CPU?

uname -a outputs this:
CYGWIN_NT-5.0 z103002 1.5.21(0.156/4/2) 2006-07-30 14:21 i686 Cygwin

Have somebody any ideas about what happens? If some additional
information about server is needed tell me what is exactly needed...

Best regards.
Pavel Ivanov

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