bug#52835: [PATCH v5 2/3] Add spawn*.

2022-09-04 Thread Bug reports for GUILE, GNU's Ubiquitous Extension Language
* libguile/posix.c: Include spawn.h from Gnulib. (scm_spawn_process): New function. (scm_init_popen): Define spawn*. --- libguile/posix.c | 71 1 file changed, 71 insertions(+) diff --git a/libguile/posix.c b/libguile/posix.c index f4ca72d3e..5d287

bug#52835: [PATCH v5 3/3] Move popen and posix procedures to spawn*.

2022-09-04 Thread Bug reports for GUILE, GNU's Ubiquitous Extension Language
* libguile/posix.c (renumber_file_descriptor, start_child, scm_piped_process): Remove functions. (scm_port_to_fd_with_default): New helper function. (scm_system_star): Rewrite using scm_spawn_process. (scm_init_popen): Remove the definition of piped-process. (scm_init_posix): Now make popen availab

bug#52835: [PATCH v5 0/3] Move spawning procedures to posix_spawn.

2022-09-04 Thread Bug reports for GUILE, GNU's Ubiquitous Extension Language
Hi everyone, As was discussed on IRC, if we're going to rewrite a non-negligible part of posix.c, let's at least do it right and use posix_spawn to handle the process spawning side of things. This is quite complex to get right in general (highlighted by this very bug) and so people have already d