Re: posix_spawn_file_actions_add[f]chdir_np

2023-04-20 Thread Bruno Haible via Cygwin
Corinna Vinschen wrote: > I pushed the posix_spawnp patch for now, so all these tests PASS. > > See https://cygwin.com/cgit/newlib-cygwin/commit/?id=da40bd6eaf40 Cool! -- Problem reports: https://cygwin.com/problems.html FAQ: https://cygwin.com/faq/ Documentation:

Re: posix_spawn_file_actions_add[f]chdir_np

2023-04-19 Thread Eliot Moss via Cygwin
A wondering in all this ... Does having more spawn support imply that bash (for example) may end up doing faster process spawning, skipping some of high overhead we've lived with for a long time because of the Windows process spawning model? Regards - Eliot Moss -- Problem reports:

Re: posix_spawn_file_actions_add[f]chdir_np

2023-04-19 Thread Corinna Vinschen via Cygwin
Hi Bruno, On Apr 19 17:05, Corinna Vinschen via Cygwin wrote: > On Apr 19 13:24, Bruno Haible via Cygwin wrote: > > Note that there is a small inconsistency between implementations: > > [...] > > Confirmed by looking at the source code: > > - musl libc: > > if (fd < 0) return EBADF; > > -

Re: posix_spawn_file_actions_add[f]chdir_np

2023-04-19 Thread Corinna Vinschen via Cygwin
Hi Bruno, On Apr 19 13:24, Bruno Haible via Cygwin wrote: > Hi Corinna, > > > Actually I had some spare time yesterday so I came up with an > > implementation of posix_spawn_file_actions_addchdir_np and > > posix_spawn_file_actions_addfchdir_np. It's pretty straightforward: > > > >

Re: posix_spawn_file_actions_add[f]chdir_np

2023-04-19 Thread Bruno Haible via Cygwin
Hi Corinna, > Actually I had some spare time yesterday so I came up with an > implementation of posix_spawn_file_actions_addchdir_np and > posix_spawn_file_actions_addfchdir_np. It's pretty straightforward: > > https://cygwin.com/cgit/newlib-cygwin/commit/?id=7e03fc35f528 Yes, it's pretty