X-Recipient: archive-cygwin@delorie.com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 81D6C385843B
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
	s=default; t=1709015715;
	bh=waOTFNeNHElFqzfhOMEdB7DO/WTDO91FBMupVTPDVXo=;
	h=Date:To:Cc:Subject:References:In-Reply-To:List-Id:
	 List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
	 From:Reply-To:From;
	b=Se13D1T3XvRuWQ08XmNZrK8T/fTK6GTzWBZTNcR/7YjcV4fWMeoAvgcFVD1rhT3m4
	 IJ7skBSdxAqISruc18DUls+Oka/5xiLsu4Wo5iHrrsFwkW8HJJ8DfLDLxnav63Sa8F
	 5iEgVOfOjoowtt/Ap7maZP4GjGWOmgFkbOPqz+yk=
X-Original-To: cygwin@cygwin.com
Delivered-To: cygwin@cygwin.com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C1EB3858C50
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2C1EB3858C50
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709015695; cv=none;
 b=Q0SSGHfKV5g0pfsJ8fTUcb9jzrMf2KJwtCQlPtqOxE/EHVVxg+li+fzSFCMYSsMyjOb0C9j7z+pTDlKWx4aGL2RLJy68g2IdpFFBfa9S2Shz/sGFAHWDpl+KVdZhZTXh+PAPhnkhq40twCTiMHZUtHzJ3oenKQXY1tGYm20CJ9I=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
 t=1709015695; c=relaxed/simple;
 bh=vVH7H9lw8q+1AIWSGMhm5urBeXCrmbf9V8YmdqYNqeg=;
 h=Date:From:To:Subject:Message-ID:Mime-Version;
 b=ni96AB8KuR3Egk2EYaZv+1CgKVQMD2pVIwmD79l91TnUa0Lhonln6O70q+17xrPN22I9orPIn3dWtxXsjOstwHqTpKaiXGZ8UsL6CFWzUHtJKA/r3OICMfE48OfX+UTc4hh3ra1+W9nt3SLmnclblrA8lsddPV8toTC92fWxHAA=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
 server2.sourceware.org
X-Spam-Language: en
X-Spam-Relay-Country: 
X-Spam-DCC: B=www.nova53.net; R=smtp1.atof.net 1206; Body=1 Fuz1=1 Fuz2=1
X-Spam-RBL: 
X-Spam-PYZOR: Reported 0 times.
Date: Tue, 27 Feb 2024 01:34:45 -0500
To: Dan Shelton <dan.f.shelton@gmail.com>
Cc: cygwin@cygwin.com
Subject: Re: Native posix_spawn() in Cygwin?
Message-ID: <Zd2ChRq46MUMv0rU@xps13>
References: <CAAvCNcCSaRBKYwd8-bU_rRh+m9LajyAVSHi3vH_3iaxwg1GE-Q@mail.gmail.com>
 <00ca6f45-aef6-4d0c-9440-8a00b2de487a@SystematicSW.ab.ca>
 <CAAvCNcDeYwhpq4Q9ftRgq3oErZNiS=x7DaLr-Lt6gAzG-npGfA@mail.gmail.com>
Mime-Version: 1.0
Content-Disposition: inline
In-Reply-To: <CAAvCNcDeYwhpq4Q9ftRgq3oErZNiS=x7DaLr-Lt6gAzG-npGfA@mail.gmail.com>
X-Spam-Status: No, score=-2.0 required=5.0 tests=BAYES_00, KAM_DMARC_STATUS,
 SPF_HELO_NONE, SPF_PASS, TXREP,
 T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-BeenThere: cygwin@cygwin.com
X-Mailman-Version: 2.1.30
Precedence: list
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=unsubscribe>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin@cygwin.com>
List-Help: <mailto:cygwin-request@cygwin.com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
 <mailto:cygwin-request@cygwin.com?subject=subscribe>
From: "gs-cygwin.com--- via Cygwin" <cygwin@cygwin.com>
Reply-To: gs-cygwin.com@gluelogic.com
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cygwin-bounces+archive-cygwin=delorie.com@cygwin.com
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie.com@cygwin.com>

On Tue, Feb 27, 2024 at 06:54:42AM +0100, Dan Shelton via Cygwin wrote:
> On Tue, 27 Feb 2024 at 06:47, Brian Inglis via Cygwin <cygwin@cygwin.com> wrote:
> >
> > On 2024-02-26 20:23, Dan Shelton via Cygwin wrote:
> > > Does Cygwin implement a native, i.e. without form(),exec(), implementation of posix_spawn()?
> >
> > Check the API compatibility docs online:
> >
> >         https://cygwin.com/cygwin-api/compatibility.html#std-susv4
> >
> > or optional locally installed package cygwin-doc:
> >
> >         /usr/share/doc/cygwin-doc/html/cygwin-api/compatibility.html#std-susv4
> 
> That document does not answer my question.
> 
> I know posix_spawn() is there. But the question is: Does it use just
> Cygwin fork(),exec(), or the native Win32 spawn() api?
> 
> Dan
> -- 
> Dan Shelton - Cluster Specialist Win/Lin/Bsd

If you were going to make a small effort to answer the question
yourself, you could use strace, you could step through a debugger, or
you could check the source code.  Have you tried any of these?  What did
you find?  If you are unable to take any of those steps, why does
posix_spawn() matter to you?

Cheers, Glenn

-- 
Problem reports:      https://cygwin.com/problems.html
FAQ:                  https://cygwin.com/faq/
Documentation:        https://cygwin.com/docs.html
Unsubscribe info:     https://cygwin.com/ml/#unsubscribe-simple
