From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-x131.google.com (mail-lf1-x131.google.com [IPv6:2a00:1450:4864:20::131]) by sourceware.org (Postfix) with ESMTPS id 9E6BF3858D28 for ; Mon, 4 Mar 2024 03:27:11 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 9E6BF3858D28 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 9E6BF3858D28 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2a00:1450:4864:20::131 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 Received: by mail-lf1-x131.google.com with SMTP id 2adb3069b0e04-51321e71673so4481752e87.2 for ; Sun, 03 Mar 2024 19:27:11 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709522830; x=1710127630; darn=cygwin.com; h=to:subject:message-id:date:from:in-reply-to:references:mime-version :from:to:cc:subject:date:message-id:reply-to; bh=AksnGMiXuYjQ3fpMg6JI89YgMnaZGALBwweLhh/q06Q=; b=Bxdb6D9ma4n3bVEyKQLUzMfyknkxL3UbmVxfgjrlvhTYYd4UYa+buUHLMm4vN7qIuS WuUOi62IGeqo1N7DKXJHpeyA4h/7//Tk/G1ltH1bxEtXeMmfnUoFQ4nC8UcNW2O3Oj45 F/f9EPEAKiwuoQH7rcgvK5O7aYS1fpnxlw7JJeTfU+ij49Cllq1Eb2irroeHpgI/4xL+ rlU5fXV/ceJ++xJPY/rbihjSwTdsJSLVCZG3RWqpAxDeBZv5rTm/BLClVHFHptSVggA2 TzUivQBjjuiyWsMJooxkhZOVzB6WAfxSF7DGNOMeEaNXhtJplAJ5Oiiw5QUWljzfIMlm 0o/Q== 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: <00ca6f45-aef6-4d0c-9440-8a00b2de487a@SystematicSW.ab.ca> In-Reply-To: From: Dan Shelton Date: Mon, 4 Mar 2024 04:27:00 +0100 Message-ID: Subject: Re: Native posix_spawn() in Cygwin? To: cygwin@cygwin.com Content-Type: text/plain; charset="UTF-8" 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 List-Id: On Tue, 27 Feb 2024 at 07:34, 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 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