delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2006/04/05/12:47:14

X-Spam-Check-By: sourceware.org
From: "Dave Korn" <dave DOT korn AT artimi DOT com>
To: <cygwin AT cygwin DOT com>
Subject: RE: fork problem
Date: Wed, 5 Apr 2006 17:47:02 +0100
Message-ID: <038d01c658d0$90738710$a501a8c0@CAM.ARTIMI.COM>
MIME-Version: 1.0
In-Reply-To: <m3zmj0m1ui.fsf@adboyd.com>
Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
List-Unsubscribe: <mailto:cygwin-unsubscribe-archive-cygwin=delorie DOT com AT cygwin DOT com>
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

On 05 April 2006 17:20, J. David Boyd wrote:

> Since yesterday, (and, _of course_, I vehemently deny changing anything in
> my system), I've been plagued with
> 
> bash: fork: Resource temporarily unavailable
> 
> and an unadorned bash prompt.
> 
> If I type exit:
> 
> Sometimes it continues on to show my regular bash prompt, which leads me to
> think that some call in my .profile failed.

  So fire up a dos prompt, cd to C:\cygwin\bin, and issue the command "bash
--login -i -x < NUL:" repeatedly until you .  Or add that -x to the options in
your cygwin.bat.  You'll get loads of irritating debug each time you fire it
up until you take it out again, but at least when it pauses with the cursor
blinking you'll see exactly what the last command it was trying to execute
was.

  Of course, this is 'doze we're talking about.  If it's been running since
yesterday without a reboot, it may have leaked enough memory and resources to
prevent the app running, but they could be recovered by rebooting.  Some apps
are very bad about this, leaking continously all the time they are running,
continuously degrading the machine's performance more and more.  If you can
reproduce the condition reliably, it might be worth doing so while terminating
all the other simultaneous apps one at a time and see if you suddenly free up
lots of resources and the probem goes away - that should give you an idea
where the blame lies.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


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