bug#61095: possible misuse of posix_spawn API on non-linux OSes

2023-03-31 Thread Omar Polo
t's the reason posix_spawn was used instead of a more classic fork() + closefrom()? Thanks, Omar Polo

bug#61095: possible misuse of posix_spawn API on non-linux OSes

2023-01-27 Thread Omar Polo
Actually I can avoid the EBADF by checking that the fd is 'live' with something like fstat: [[[ Index: libguile/posix.c --- libguile/posix.c.orig +++ libguile/posix.c @@ -1325,8 +1325,12 @@ SCM_DEFINE (scm_fork, "primitive-fork", 0, 0, 0, static void close_inherited_fds_slow (posix_spawn_file_ac

bug#61095: possible misuse of posix_spawn API on non-linux OSes

2023-01-27 Thread Omar Polo
t to do from here, I'm not used to the posix_spawn_* APIs. I'm happy to help testing diffs or by providing more info if needed. Thanks, Omar Polo