From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from smtp1.atof.net (smtp1.atof.net [52.86.233.228]) by sourceware.org (Postfix) with ESMTPS id 2C1EB3858C50 for ; Tue, 27 Feb 2024 06:34:54 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2C1EB3858C50 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=gluelogic.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gluelogic.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2C1EB3858C50 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=52.86.233.228 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 From: gs-cygwin.com@gluelogic.com To: Dan Shelton Cc: cygwin@cygwin.com Subject: Re: Native posix_spawn() in Cygwin? Message-ID: References: <00ca6f45-aef6-4d0c-9440-8a00b2de487a@SystematicSW.ab.ca> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Content-Disposition: inline In-Reply-To: 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 List-Id: 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 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