posix_spawn

Mark Geisert mark@maxrnd.com
Wed Apr 23 02:46:16 GMT 2025


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<pe && *pp;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


More information about the Cygwin mailing list

AltStyle によって変換されたページ (->オリジナル) /