DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53MJWQp51732940 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 53MJWQp51732940 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=EpvudRxQ X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 1F1323857BA3 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1745350345; bh=AZopupMhnmj2qBuog0iZXVLHAp2KyAZHFJLUcfUgx5Q=; 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=EpvudRxQyy1mk4RBwE/TJxWSedEJIw/ZjzRsTKEG7aCMYJygKDFkpTuY3loqcd6ec ZNsZwQeKOSEFn/2/WQubiEp/HOVb9N9dFGaVK3oGJZU+eJr5iqISExRp+Ty1wBMzRq VGxAo2eutQqYsRokzgrNXFKD7M/1VCAlDeASF+Lg= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 254963858C51 ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 254963858C51 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745350275; cv=none; b=x0q4Ty5ZQwYPW8KlzwlfPtmA+TK7NdWMvext5gmXjDGYJ+effS4cxS5xIjfqfByh2+pKMpiBymZU0eIzbgZCaawLowG+Y0Qttf3kQAXBmtylCA90vq8zN1IAag0U+ImctdUj4zJVu5A7QSKytUfz5k6OTjKfzhKQA9wN0k4oy/k= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745350275; c=relaxed/simple; bh=IE/DpeOqFxw8Jjlw9XUCnoMm/XNzaSU7W0T41BOAgzw=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=HrcuJSbu9hob0rmlq3JaQefyhceaqWjg+Hn+Pq604bLpReOpprUWECV4xNt8jOuiyeyKZxh/C7+v/a0W6xKbxHPM1xUMEixCy3ZTZngVHTfQz86x7425moYLKCg3uBUgqmPeGbORu0RYa96NjBCyXxNpX/WtgrhgMl2mLkCEmMw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 254963858C51 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 15:31:11 -0400 In-Reply-To: (Mark Geisert via Cygwin-apps's message of "Mon, 21 Apr 2025 01:21:16 -0700") Message-ID: <87o6wogfi8.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! posix_spawnp is returning 10, or ECHILD, on the following call. At least on my first reading (:-)), ECHILD is not one of the documented errors for fork, vfork, or clone referenced by the Linux manpage for posix_spawnp. Suggestions? Take care, ============================================================================= massert(!posix_spawn_file_actions_init(&file_actions)); massert(!posix_spawnattr_init(&attr)); printf("spawn 2 %s\n",*p1); for (pp=p1;pp 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 ;-). > > ..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