delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/22/14:08:43

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53MI8gYn1699751
Authentication-Results: delorie.com; dmarc=pass (p=none dis=none) header.from=cygwin.com
Authentication-Results: delorie.com; spf=pass smtp.mailfrom=cygwin.com
DKIM-Filter: OpenDKIM Filter v2.11.0 delorie.com 53MI8gYn1699751
Authentication-Results: delorie.com;
dkim=fail reason="signature verification failed" (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=nBl6Zzg+
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B9B2B3857B8C
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1745345320;
bh=NrIymHyAP5Mh5JALBe0yd5QQoKbFTMCqg2R2f+5+62o=;
h=To:Cc:Subject:References:Date:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=nBl6Zzg+CFmK3y/BO8b4CTgRt2PnLry7FhFkXBY+arGHNCzIrBnMaP6IOoxSxmoCD
6q1Sn6sbemgJvpvU8H9Hh+xlnGssFBXronxnMTmuGWl7NTotgM/2XcL91zun5qBuvi
TUVcTVb6UKNleYXiZSlpoOpR5hqABEKB1LrDjIRM=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 46E123857C7F
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 46E123857C7F
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745345247; cv=none;
b=Xxaxaw3JBnFUWuyUPjqKUthsByqCcZHixVlZctsJT7lwZqarkADGhnPZ+HXKTu2bbLxyrlGQt4kZ27ayob4/QWEdpUPGtJDsi9bqMyfSO237Vbx86Q+iu1RjHdj9/DiU90XQAgyHJmuOWlQBVWz4DOAAFHYoo/32V/RZ8yK79Rk=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1745345247; c=relaxed/simple;
bh=gPjRWYgmb1Ufc9a16ooaV7c0bxYO8PD2zArHG3eB9Cs=;
h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version;
b=mBiyFIyevs3zy8Cw1qz/GkcoZL9RHgEHemtSNbuLiPPVa3eWBYbmsrQJxR57pH+TilCL9KXkQNSYfIDNoUDHHnH4T1FyT6wXs2ian7i+WGgoc4+Y+GR5zxQcLJ3RHhqn+X26DIFhL52UMO371NuLotE8H6ukPF99vos3UPZMbTc=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 46E123857C7F
To: Mark Geisert via Cygwin-apps
<cygwin-apps AT cygwin DOT com>,
camm AT maguirefamily DOT org
Cc: Mark Geisert <mark AT maxrnd DOT com>,
The Cygwin Mailing List
<cygwin AT cygwin DOT com>
Subject: Re: posix_spawn
References: <87plh7x4qp DOT fsf AT maguirefamily DOT org>
<cd536b39-2eb3-4a9e-b5e3-f0a55bf006ee AT maxrnd DOT com>
Date: Tue, 22 Apr 2025 14:07:23 -0400
In-Reply-To: <cd536b39-2eb3-4a9e-b5e3-f0a55bf006ee@maxrnd.com> (Mark Geisert
via Cygwin-apps's message of "Mon, 21 Apr 2025 01:21:16 -0700")
Message-ID: <877c3crrxg.fsf@maguirefamily.org>
User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/28.2 (gnu/linux)
MIME-Version: 1.0
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-Unsubscribe: <https://cygwin.com/mailman/options/cygwin>,
<mailto:cygwin-request AT cygwin DOT com?subject=unsubscribe>
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: Camm Maguire via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Camm Maguire <camm AT maguirefamily DOT org>
Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com
Sender: "Cygwin" <cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com>

Greetings, and thanks so much!

Mark Geisert via Cygwin-apps <cygwin-apps AT cygwin DOT com> writes:

> On 4/19/2025 1:42 PM, Camm Maguire via Cygwin-apps wrote:
>> Greetings!
>> posix_spawn is returning non-zero without setting errno:
>>    massert(!posix_spawnp(&pid, *p1, &file_actions, &attr,  (void
>> *)p1, environ));
>> Is this intended to be supported?  Is it known to be working or not
>> working elsewhere?
>
> This kind of question should be sent to the main Cygwin mailing list
> cygwin AT cygwin DOT com, now CC'd.  Please follow up there if necessary.
>
> On failure, posix_spawnp() returns the error number rather than
> setting errno.  This is a convention followed by some number of the
> posix_*() functions; which ones is a question for readers of the POSIX
> standard ;-).

Indeed, I read the manpage too quickly -- thanks so much for pointing
this out!

=============================================================================
RETURN VALUE
       Upon successful completion, posix_spawn() and posix_spawnp()  place  the
       PID  of  the  child  process in pid, and return 0.  If there is an error
       during the fork() step, then no child is created, the contents  of  *pid
       are unspecified, and these functions return an error number as described
       below.
=============================================================================

Take care,

>
> ..mark
>
>
>

-- 
Camm Maguire			     		    camm AT maguirefamily DOT org
==========================================================================
"The earth is but one country, and mankind its citizens."  --  Baha'u'llah

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