Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm List-Subscribe: List-Archive: List-Post: List-Help: , Sender: cygwin-owner AT cygwin DOT com Mail-Followup-To: cygwin AT cygwin DOT com Delivered-To: mailing list cygwin AT cygwin DOT com Subject: Re: cygwin implementation of fork() eating all resourses? From: bertrand marquis To: cygwin In-Reply-To: <20040906084817.GR17670@cygbert.vinschen.de> References: <20040906084817 DOT GR17670 AT cygbert DOT vinschen DOT de> Content-Type: text/plain; charset=UTF-8 Organization: SYSGO AG Message-Id: <1094464718.18447.5.camel@bma.sysgo.com> Mime-Version: 1.0 Date: 06 Sep 2004 11:58:38 +0200 X-Spam-Checker-Version: SpamAssassin 2.63 (2004-01-11) on donald.sysgo.com X-Spam-Level: X-Spam-Status: No, hits=-4.9 required=5.0 tests=BAYES_00 autolearn=no version=2.63 X-AntiVirus: checked by AntiVir MailGate (version: 2.0.1.16; AVE: 6.27.0.6; VDF: 6.27.0.47; host: mailgate.sysgo.de) Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id i869wjAO022502 Hi, i had the same behaviour under windows xp. It seems that you need to give back the end to the system sometimes in a while(1) unless it will take all resources of the system and the child won't do anything. i had the problem waiting for a network message which wasn't able to be received as the process took all resources. The solution for me was only to put a usleep in c code to be shure that windows take back the hand from time to time. By the way this doesn't append for me on windows 2000.... i used windows xp sp2 with cygwin 1.5.10-3 Bertrand Le lun 06/09/2004 à 10:48, Corinna Vinschen a écrit : > On Sep 6 08:42, Artem Gluhov wrote: > > After 5 minutes running this script i got a windwows XP > > error: not enough system resourses. > > > > <---------------------- > > #!/bin/bash > > while (( 1 )); do > > ls > /dev/null; > > done; > > ----------------------> > > Hmm, I tried it for 15 Minutes but the resource usage was stable. > Is that with the current Cygwin release? > > > Corinna -- 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/