delorie.com/archives/browse.cgi | search |
Mailing-List: | contact cygwin-help AT sourceware DOT cygnus DOT com; run by ezmlm |
List-Subscribe: | <mailto:cygwin-subscribe AT sources DOT redhat DOT com> |
List-Archive: | <http://sources.redhat.com/ml/cygwin/> |
List-Post: | <mailto:cygwin AT sources DOT redhat DOT com> |
List-Help: | <mailto:cygwin-help AT sources DOT redhat DOT com>, <http://sources.redhat.com/ml/#faqs> |
Sender: | cygwin-owner AT sources DOT redhat DOT com |
Delivered-To: | mailing list cygwin AT sources DOT redhat DOT com |
Date: | Wed, 28 Feb 2001 18:56:58 -0500 |
From: | Christopher Faylor <cgf AT redhat DOT com> |
To: | cygwin AT cygwin DOT com |
Subject: | Re: spawn hangs for non-Cygwin programs |
Message-ID: | <20010228185658.I5603@redhat.com> |
Reply-To: | cygwin AT cygwin DOT com |
Mail-Followup-To: | cygwin AT cygwin DOT com |
References: | <3A9D6C7A DOT 8E6A52FF AT tensilica DOT com> <20010228184732 DOT G5603 AT redhat DOT com> |
Mime-Version: | 1.0 |
User-Agent: | Mutt/1.3.11i |
In-Reply-To: | <20010228184732.G5603@redhat.com>; from cgf@redhat.com on Wed, Feb 28, 2001 at 06:47:32PM -0500 |
On Wed, Feb 28, 2001 at 06:47:32PM -0500, Christopher Faylor wrote: >On Wed, Feb 28, 2001 at 01:24:10PM -0800, Bob Wilson wrote: >>I have a Cygwin program that contains the following call to invoke a >>child process: >> >> pid = spawnvp((int)_P_NOWAIT, argv[0], argv); >> >>Sometime between Cygwin 1.1.4 and 1.1.8 it seems to have stopped >>working. If the child is another Cygwin program, then everything is >>fine. If the child was compiled with -mno-cygwin, however, the spawnvp >>call never returns (as if I hadn't specified _P_NOWAIT). >> >>Is this supposed to work? > >Yes. Actually, on reflection, this is working as designed, unfortunately. spawn relies on some synchronization with the cygwin process now and if the process is not a cygwin process, the synchronization never happens. So, spawn waits for the program to terminate. cgf -- Want to unsubscribe from this list? Check out: http://cygwin.com/ml/#unsubscribe-simple
webmaster | delorie software privacy |
Copyright © 2019 by DJ Delorie | Updated Jul 2019 |