X-Recipient: archive-cygwin@delorie.com
X-Spam-Check-By: sourceware.org
content-class: urn:content-classes:message
MIME-Version: 1.0
Content-Type: text/plain; 	charset="us-ascii"
Subject: RE: postinstall hang
Date: Tue, 1 Apr 2008 09:47:22 -0400
Message-ID: <A28965E490DE4B4DBE938ECF7CC19C04073F4FBF@blums0014.na.baesystems.com>
References: <001901c89348$cd86c8b0$06bca8c0@bigtower> <A28965E490DE4B4DBE938ECF7CC19C04073F4FB1@blums0014.na.baesystems.com> <47F19881.2080508@byu.net>
From: "Popper, Samuel \(US SSA\)" <samuel.popper@baesystems.com>
To: <cygwin@cygwin.com>
X-IsSubscribed: yes
Mailing-List: contact cygwin-help@cygwin.com; run by ezmlm
List-Id: <cygwin.cygwin.com>
List-Subscribe: <mailto:cygwin-subscribe@cygwin.com>
List-Archive: <http://sourceware.org/ml/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-help@cygwin.com>, <http://sourceware.org/ml/#faqs>
Sender: cygwin-owner@cygwin.com
Mail-Followup-To: cygwin@cygwin.com
Delivered-To: mailing list cygwin@cygwin.com
Content-Transfer-Encoding: 8bit
X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id m31DlpQw002253

> | $ NUM=1; while true ; do echo $NUM; NUM=$(( $NUM + 1 )); done
> |
> | will run indefinitely,
> 
> because it doesn't fork

Correct; that's what I was trying to demonstrate.

> | $ NUM=1; while true ; do echo `echo $NUM` ; NUM=$(( $NUM + 1 ));
done
> |
> | Hangs pretty quickly,
> 
> because it forks a huge number of processes, and each fork is likely
to be
> tripped up by a BLODA

As I understand it, that should fork once per iteration.

Running with cut-down PATH:

[samuel.popper@localhost ~]$ echo $PATH
/usr/local/bin:/usr/bin:/bin:/usr/X11R6/bin
[samuel.popper@localhost ~]$ NUM=1; while true ; do echo `echo $NUM` ;
NUM=$(( $NUM + 1 )); done
1
2

Here, it hung after 2 iterations.  The default /etc/profile forks more
than that!

Other than sneaking in via PATH, the only moderately intrusive thing
running on the system is Sysinternal's ProcessExplorer.  But I tried
running with that closed, and it made no difference.

Is there anything else that could contribute to BLODA?

Thanks,

-Sam



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


