Mailing-List: contact cygwin-help@sourceware.cygnus.com; run by ezmlm
List-Subscribe: <mailto:cygwin-subscribe@sources.redhat.com>
List-Archive: <http://sources.redhat.com/ml/cygwin/>
List-Post: <mailto:cygwin@sources.redhat.com>
List-Help: <mailto:cygwin-help@sources.redhat.com>, <http://sources.redhat.com/ml/#faqs>
Sender: cygwin-owner@sources.redhat.com
Delivered-To: mailing list cygwin@sources.redhat.com
Message-ID: <3A9D6C7A.8E6A52FF@tensilica.com>
Date: Wed, 28 Feb 2001 13:24:10 -0800
From: Bob Wilson <bwilson@tensilica.com>
Organization: Tensilica, Inc.
X-Mailer: Mozilla 4.61 [en] (X11; U; Linux 2.2.14-5.0-ipsec i586)
X-Accept-Language: en
MIME-Version: 1.0
To: cygwin@cygwin.com
Subject: spawn hangs for non-Cygwin programs
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

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?  If not, is it a known problem?  I'm
tentatively planning to rewrite my code to call CreateProcess directly
but I thought I should report the problem in case no one else has
encountered this yet.

-- 
Bob Wilson                      Tel: (408) 327-7312
Tensilica, Inc.                 Fax: (408) 986-8919
3255-6 Scott Blvd.              email: bwilson@tensilica.com
Santa Clara, CA 95054

--
Want to unsubscribe from this list?
Check out: http://cygwin.com/ml/#unsubscribe-simple

