delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2004/07/29/14:45:54

Mailing-List: contact cygwin-help AT cygwin DOT com; run by ezmlm
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
Message-ID: <20040729184537.93419.qmail@web51607.mail.yahoo.com>
Date: Thu, 29 Jul 2004 11:45:37 -0700 (PDT)
From: George Morin <garlic_ash AT yahoo DOT com>
Subject: cygwin 1.4.0 - fork stops working ("permission denied")
To: cygwin AT cygwin DOT com
MIME-Version: 1.0

I am currently running an application which uses
fork/exec to run various background jobs. Every once
in a while (less than .5%) I've found that fork fails
and with strerror have received a permission denied
error. From that point on, all subsequent forks will
fail. In between my fork and exec the child process
changes directories and redirects stdin, stdout and
stderr. I have been unable to reproduce the above
behaviour in a scaled down program. I believe this
code has worked without incident on a unix box and has
only recently been discovered now that the code has
been ported to cygwin. I poked around google and the
archives and haven't found an acceptable solution. I
haven't noticed any unusual behaviour with my process
ids (I'm not using AOF) or system resources. I'm
running cygwin with Win2k and gcc 3.3.1. Can someone
please offer suggestions for further investigation or
perhaps a possible workaround? I have been able to use
spawn() instead of fork/exec and it seemed to work
fine but I don't know how to include the preprocessing
that was done between the fork and exec. Any help is
appreciated.

Thanks for your consideration,
-Garrick


	
		
__________________________________
Do you Yahoo!?
New and Improved Yahoo! Mail - 100MB free storage!
http://promotions.yahoo.com/new_mail 

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