X-Recipient: archive-cygwin AT delorie DOT com X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=AWL,BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,FREEMAIL_ENVFROM_END_DIGIT,FREEMAIL_FROM,KHOP_RCVD_TRUST,KHOP_THREADED,RCVD_IN_DNSWL_LOW,RCVD_IN_HOSTKARMA_YE X-Spam-Check-By: sourceware.org MIME-Version: 1.0 In-Reply-To: References: <786EBDA1AC46254B813E200779E7AD36023A42C2 AT srv1163ex1 DOT flightsafety DOT com> <4FC7C859 DOT 5050909 AT cs DOT umass DOT edu> Date: Thu, 31 May 2012 23:27:34 +0200 Message-ID: Subject: Re: Shell script loop runs out of memory From: AZ 9901 To: cygwin AT cygwin DOT com Content-Type: text/plain; charset=UTF-8 X-IsSubscribed: yes Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm Precedence: bulk List-Id: List-Unsubscribe: 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 Content-Transfer-Encoding: 8bit X-MIME-Autoconverted: from quoted-printable to 8bit by delorie.com id q4VLRqO0000436 2012/5/31 Jordan : > AZ 9901 : >> >> Make an infinite loop with no fork, and look at the memory usage. >> Then, make an infinite loop with one fork and look at the memory >> >> I really hope a solution will be found one day >> > > Argh!  And I really like CygWin, so I was hoping to learn that this is > resolvable. > > (Of course I could start uninstalling BLODA programs, but it's a fairly > inconvenient solution.) > > Maybe I'll just write a C program or Perl script to do the same thing. > A Perl script won't run into the same forking issue, will it? > (Assuming I use a Perl library to get the MD5 hash, rather than calling > out to execute md5sum?) > Yes using a library it should be OK ! Using "system" to call md5sum will give you the bad fork effect. Ben -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple