Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-developers-owner AT sources DOT redhat DOT com Delivered-To: mailing list cygwin-developers AT sources DOT redhat DOT com Date: Tue, 10 Jul 2001 16:28:11 -0400 From: Jason Tishler To: Cygwin-Developers Subject: 2001-06-28 CVS ash Background Win32 Process Hang Problem Message-ID: <20010710162811.D320@dothill.com> Mail-Followup-To: Cygwin-Developers Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="UpzSSS8WA0lgtKcR" Content-Disposition: inline User-Agent: Mutt/1.3.18i Organization: Dot Hill Systems Corp. --UpzSSS8WA0lgtKcR Content-Type: text/plain; charset=us-ascii Content-Disposition: inline I have been using a Cygwin DLL that I built from CVS on 2001-06-28. With this DLL, I discovered that ash will hang waiting for process termination even when a Win32 program is spawned in background. See the attachments for two small test cases. hang.sh exhibits the problem while nohang.sh does not. Also, note that the problem does not occur regardless of the shell used, if the background process is a Cygwin program. The problem does not occur in 1.3.2 -- so it has been introduced since that release. I did not try the latest because reading cygwin-cvs seemed to indicate that most of the changes since 2001-06-28 have been in setup.exe. Additionally, I'm reluctant to modify my sandbox because I currently trying to help Rob track down a pthreads problem. Anyway, my WAG is that this problem is still in the latest CVS. Anyone have any ideas as to what is causing the problem? Thanks, Jason -- Jason Tishler Director, Software Engineering Phone: 732.264.8770 x235 Dot Hill Systems Corp. Fax: 732.264.8798 82 Bethany Road, Suite 7 Email: Jason DOT Tishler AT dothill DOT com Hazlet, NJ 07730 USA WWW: http://www.dothill.com --UpzSSS8WA0lgtKcR Content-Type: application/x-sh Content-Disposition: attachment; filename="hang.sh" #!/bin/sh echo before notepad & echo after --UpzSSS8WA0lgtKcR Content-Type: application/x-sh Content-Disposition: attachment; filename="nohang.sh" #!/bin/bash echo before notepad & echo after --UpzSSS8WA0lgtKcR--