unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
* bug#63826: Posix Spawn on MinGW
       [not found] <ZHiqzikAkQ+00tSm.ref@spikycactus.com>
@ 2023-06-01 14:27 ` Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language
  0 siblings, 0 replies; only message in thread
From: Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language @ 2023-06-01 14:27 UTC (permalink / raw)
  To: 63826

The recent addition of the posix_spawn gnulib module raises the
possibility of getting this functionality to work on MinGW, since the
gnulib module provides portability to MinGW and friends.

The first step is to remove the HAVE_FORK ifdefs where unnecessary in
posix.c, since piped_process() does not use fork.  This will allow the
functions to be exported.

Guile's homegrown waitpid in posix-w32.c is apparently not compatible
with gnulib's posix_spawn since they use different stores for PIDs and
process handles. The gnulib waitpid will need to be imported and
Guile's custom waitpid removed.

Also, various hardcodings of "/bin/sh" and "/dev/null" will need
workarounds.

If it could be made to work, it would still not function identically
to how it functions on GNU/Linux because of the different shell, but
we already accepted such divergence previously when 'system*' used the
start_child from Guile's posix-w32.c

-Mike Gran





^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-06-01 14:27 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <ZHiqzikAkQ+00tSm.ref@spikycactus.com>
2023-06-01 14:27 ` bug#63826: Posix Spawn on MinGW Mike Gran via Bug reports for GUILE, GNU's Ubiquitous Extension Language

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).