delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin/2025/04/21/04:23:04

DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53L8N4br870288
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 53L8N4br870288
Authentication-Results: delorie.com;
dkim=pass (1024-bit key, unprotected) header.d=cygwin.com header.i=@cygwin.com header.a=rsa-sha256 header.s=default header.b=aT4xWKVi
X-Recipient: archive-cygwin AT delorie DOT com
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 28A0B3858C62
DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com;
s=default; t=1745223782;
bh=vLvYQGATE3Vp7I66nRiez8hiQNXXQh8lOzO20rKvyEY=;
h=Date:Subject:To:Cc:References:In-Reply-To:List-Id:
List-Unsubscribe:List-Archive:List-Post:List-Help:List-Subscribe:
From:Reply-To:From;
b=aT4xWKVijNAejt/diK8KzXAXjM7+EXiwfWwghJj54R8bs3JRujCe5JX2SgquX+V4j
AozMg2HgoAZiQtS0DX/lx1Uan1DEI1tQ+wcC3KlhjbIIplCocIt9oMAeuaRLjp4qoK
woiw3ljKs64iZgPoiMtkmF8eotEr4rkcgjjsFT8I=
X-Original-To: cygwin AT cygwin DOT com
Delivered-To: cygwin AT cygwin DOT com
DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org F29B23858D37
ARC-Filter: OpenARC Filter v1.0.0 sourceware.org F29B23858D37
ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745223683; cv=none;
b=T8lzrqMpgoALGS+Rp14+lJqJ1ngeGZxaPxvivO2ximNC2fuLAYaZL5JAPz9BQvEhPQulYNx/R6C81rNmeflond/B9OXyd/n40kr4uWFKTUS1O7sOzV8PkTXflEhfPzuQPH1IysmZLNTJsmmpjb3PUw6qDe6P+W3wP4h8rORKLjo=
ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key;
t=1745223683; c=relaxed/simple;
bh=6Rq/SSckV4UWJi4Fqy+aG9AiDUzqu8QeeGFHL667BAA=;
h=Message-ID:Date:MIME-Version:Subject:To:From;
b=bFlm6fWxWflOc2OnZzB5E6+OpSpEoIpX48OGikzrL5WJ4iGnSNwYGDjbJLO8JoFWrmjVX169LhhprgQvZ0LmYO2TIqHvUl0vqxiVuEjp/IkwZhqZ8GYX3pA3P1PyPM3XJ0vAAmkm4Ajw22HIZXMOH8Rv9LAse1z5/IF93wq1PMw=
ARC-Authentication-Results: i=1; server2.sourceware.org
DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F29B23858D37
Message-ID: <cd536b39-2eb3-4a9e-b5e3-f0a55bf006ee@maxrnd.com>
Date: Mon, 21 Apr 2025 01:21:16 -0700
MIME-Version: 1.0
User-Agent: Mozilla Thunderbird
Subject: Re: posix_spawn
To: cygwin-apps AT cygwin DOT com
Cc: The Cygwin Mailing List <cygwin AT cygwin DOT com>
References: <87plh7x4qp DOT fsf AT maguirefamily DOT org>
In-Reply-To: <87plh7x4qp.fsf@maguirefamily.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-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: Mark Geisert via Cygwin <cygwin AT cygwin DOT com>
Reply-To: Mark Geisert <mark AT maxrnd DOT com>
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>

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 ;-).

..mark

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