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 , camm AT maguirefamily DOT org Cc: Mark Geisert , The Cygwin Mailing List Subject: Re: posix_spawn References: <87plh7x4qp DOT fsf AT maguirefamily DOT org> Date: Tue, 22 Apr 2025 14:07:23 -0400 In-Reply-To: (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 Precedence: list List-Id: General Cygwin discussions and problem reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , From: Camm Maguire via Cygwin Reply-To: Camm Maguire Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Greetings, and thanks so much! Mark Geisert via Cygwin-apps 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