DMARC-Filter: OpenDMARC Filter v1.4.2 delorie.com 53N2lcEk1917253 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 53N2lcEk1917253 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=Dt/6uK33 X-Recipient: archive-cygwin AT delorie DOT com DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 180213857B98 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=cygwin.com; s=default; t=1745376457; bh=j3ktxTh4xujWRC8uOysbA36yP0VLvDLjq/AhyJYITZg=; h=Date:Subject:To:References:In-Reply-To:List-Id:List-Unsubscribe: List-Archive:List-Post:List-Help:List-Subscribe:From:Reply-To: From; b=Dt/6uK33KJjVH7oreDqf59eoCGTlitCfFrw5+EfXW9ZAMhkoq8VFUZPC6az4HaMmh e9KAdDnSljd7ElBpDNU9Dd3KTYloNA9+g+UqHsljG0hCWtZmmYXouWZrUiekbvHASn bBGYclwRcs3+WqDx2BPtFqYhBs0YKDi70Ngk9ZJA= X-Original-To: cygwin AT cygwin DOT com Delivered-To: cygwin AT cygwin DOT com DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 15EDE3857C7F ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 15EDE3857C7F ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745376379; cv=none; b=xvgbrVOilUpYM9s2KpMEos9CnhOFMMAEBhKhqTjGnhzWN+gjqe8S0Scni9kYgWaJcYga2JYBfokEBSLXGOLyVJigZAGIyT6QwfSbtfsh7pTaQXyTPvF3O3BjTHjMZ12S9SfcCCPhryQJyoJ0rzerRe4T1IjDb5fvoArFewC0rtY= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1745376379; c=relaxed/simple; bh=Byj29aK5/8Vv+3Yqs71hFPDhmYJi9lAT73lRJVPh2gc=; h=Message-ID:Date:MIME-Version:Subject:To:From; b=GcW9f8WiwGIxj43lf78UczdMsCGDkGVsFXvBB5rHpH7TRlaboet2MJvyPKFgUO1uqfruTWFy+hy6xFG2NER1GN7CAPGJrleDou4IIK/+8++Mz30GFwdmYQDftRdJHV4wrQGJNoNoUm0XGeX4Jmho/mQbaecIdTF/Q+VgmtAMt78= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 15EDE3857C7F Message-ID: <5e6b90a1-409d-43db-aecd-68bcb7b032b4@maxrnd.com> Date: Tue, 22 Apr 2025 19:46:16 -0700 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: posix_spawn To: The Cygwin Mailing List References: <87plh7x4qp DOT fsf AT maguirefamily DOT org> <87o6wogfi8 DOT fsf AT maguirefamily DOT org> Content-Language: en-US In-Reply-To: <87o6wogfi8.fsf@maguirefamily.org> 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: Mark Geisert via Cygwin Reply-To: Mark Geisert Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="us-ascii"; Format="flowed" Errors-To: cygwin-bounces~archive-cygwin=delorie DOT com AT cygwin DOT com Sender: "Cygwin" Hi Camm, On 4/22/2025 12:31 PM, Camm Maguire via Cygwin-apps wrote: > 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 printf("spawn 2a %s\n",*pp); > for (pp=(void *)environ;*pp;pp++) > printf("spawn 2e %s\n",*pp); > > s=posix_spawnp(&pid, *p1, &file_actions, &attr, (void *)p1, environ); > printf("spawn %d\n",s);fflush(stdout); > > ============================================================================= Hmm, that's interesting. Could you please post what we call an "STC", a Simple Test Case. Something in C that demonstrates the problem and is completely self-contained, along with how to run it? We don't want to be assuming things that are not shown in the code excerpt above. Thanks, ..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