delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2024/03/03/22:28:05

X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 633FD3858C33
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1709522883;
bh=yffixBVYvCzhpvPtG02osvJf6v90n3JfxfQb+ZbYtlA=;
h=References:In-Reply-To:Date:Subject:To:List-Id:List-Unsubscribe:
List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To:
From;
b=eDF7Vdnlogyko6Q4MI3+glSyArJ8cuYPrDKz/NQniWWsN3RzEIIUktIfI7q21MZZ6
oXFvoos+RfPV6QpgP6Wqo/hVah8lr2VV0X8cPw54BYg0j8SBMlNf0odQS2cJ2U1SKN
D5OHL47nQ6hnGI6Tr+Ae9UfPCVVpd8pC8vPWipM0=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E6BF3858D28
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E6BF3858D28
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1709522833; cv=none;
b=naUyJYSuxls0SG92z18EeVz1sqhSt30gs9jteoMuUzBe3U75Tu0uyZx/8sTGYYdX5UbaJUHVf+j7lCE/jRk4H7Qj//lGnwJtq1T6PGZKCFqGFNxAPoxIvgoodXqyIjmgbTfVfVIH9aoVb1Pd8nDO6y1YJViY18L9aqKKXv3KnlA=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1709522833; c=relaxed/simple;
bh=ULZPEl/8bDddGvHb1fDsJUDGLB0DCwr95TmDTjqT5cc=;
h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To;
b=IVtX8JHXrmH4Y5a6BnZpaDyClmkGdww27AhIYDYfghG8qVBcU8E1d8LRjqSAgwF8N/TpSc9icVfBGGmwYMCppgLFL8GCCLMDSc32KtQHINiHBvgXzPa1dFCA/tP6ZOQW2BXuZlKnH6suuO5qEhNHxFmaBgCCSsFNjTnWRq93H+M=
ARC-Authentication-Results: i=1; server2.sourceware.org
X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed;
d=1e100.net; s=20230601; t=1709522830; x=1710127630;
h=to:subject:message-id:date:from:in-reply-to:references:mime-version
:x-gm-message-state:from:to:cc:subject:date:message-id:reply-to;
bh=AksnGMiXuYjQ3fpMg6JI89YgMnaZGALBwweLhh/q06Q=;
b=mU17pWcyC+6I/6NLgjVFzLiHBa7bESAjiBsGkJqheuuM9s+KiAY0nQFCNFPhQNv2g3
ntXW2QbSv20Zie/Q0xVJ5BngO/R2J6vPf7Rbx6i2kVCcD/AYjLcSVvWw8K1vBbS5ilac
Z0YN2sEn6O3cYHLzDqq9bZC6Tk5VPFTaZ2ZeulQviY4HAwUVz9NliygzxyPgvXaMnAMS
AqId5bUHMciyLM6hULpB5llivZIBb6M5AfMZaJbwH4+5DDshbLlVRD/N+eVeGP+zCsZ5
TQrYn1DYZsx3qX9WeHMsBu95glbjwapm2zpN1pTEIj0eVGaLxHo4avmyRNTvMsf4eBF7
iTng==
X-Gm-Message-State: AOJu0YygOtl00WFsEcqPdafZGuB2UWXiSFBQ11qL4tnuhRDSONQ5DwRI
s4I9Zpm0D7DLSwj4QoSCbbxlKX/HpPithtVoCekXmjToqAHRW6kWQ6D3v+PXUQIbGz++hgH6SIW
/b7ZhhdPkLHL4Jf6HikMJsMiZF4NxDn2n
X-Google-Smtp-Source: AGHT+IEJdgWaEXPgJvZhOJJW3ubePuKCRMyK2mJPrjcnM48FMKn8Xsa1ruBykFzGvbs/3SFP7TifgFB467vk6HusEzg=
X-Received: by 2002:a05:6512:ac2:b0:513:3d26:7cbd with SMTP id
n2-20020a0565120ac200b005133d267cbdmr2907351lfu.15.1709522829629; Sun, 03 Mar
2024 19:27:09 -0800 (PST)
MIME-Version: 1.0
References: <CAAvCNcCSaRBKYwd8-bU_rRh+m9LajyAVSHi3vH_3iaxwg1GE-Q AT mail DOT gmail DOT com>
<00ca6f45-aef6-4d0c-9440-8a00b2de487a AT SystematicSW DOT ab DOT ca>
<CAAvCNcDeYwhpq4Q9ftRgq3oErZNiS=x7DaLr-Lt6gAzG-npGfA AT mail DOT gmail DOT com>
<Zd2ChRq46MUMv0rU AT xps13>
In-Reply-To: <Zd2ChRq46MUMv0rU@xps13>
Date: Mon, 4 Mar 2024 04:27:00 +0100
Message-ID: <CAAvCNcBTRkJuD52dZsPePAG_yK_cBc=Ps4QPeG1BBXdZp5OYdg@mail.gmail.com>
Subject: Re: Native posix_spawn() in Cygwin?
To: cygwin AT cygwin DOT com
X-Spam-Status: No, score=0.3 required=5.0 tests=BAYES_00, DKIM_SIGNED,
DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_DNSWL_NONE,
SPF_HELO_NONE, SPF_PASS, TXREP,
T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6
X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on
server2.sourceware.org
X-BeenThere: cygwin AT cygwin DOT com
X-Mailman-Version: 2.1.30
List-Id: General Cygwin discussions and problem reports <cygwin.cygwin.com>
List-Archive: <https://cygwin.com/pipermail/cygwin/>
List-Post: <mailto:cygwin AT cygwin DOT com>
List-Help: <mailto:cygwin-request AT cygwin DOT com?subject=help>
List-Subscribe: <https://cygwin.com/mailman/listinfo/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=subscribe>
From: Dan Shelton via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Dan Shelton <dan DOT f DOT shelton AT gmail DOT com>
Sender: "Cygwin" <cygwin-bounces+archive-cygwin=delorie DOT com AT cygwin DOT com>

On Tue, 27 Feb 2024 at 07:34, <gs-cygwin DOT com AT gluelogic DOT com> wrote:
>
> 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 AT cygwin DOT 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?

strace does not help, as I need the Win32 calls BELOW posix_spawn(),
to see the implementation details.

Dan
-- 
Dan Shelton - Cluster Specialist Win/Lin/Bsd

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

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019