unofficial mirror of bug-guile@gnu.org 
 help / color / mirror / Atom feed
From: Mike Gran via "Bug reports for GUILE, GNU's Ubiquitous Extension Language" <bug-guile@gnu.org>
To: 63826@debbugs.gnu.org
Subject: bug#63826: Posix Spawn on MinGW
Date: Thu, 1 Jun 2023 07:27:26 -0700	[thread overview]
Message-ID: <ZHiqzikAkQ+00tSm@spikycactus.com> (raw)
In-Reply-To: ZHiqzikAkQ+00tSm.ref@spikycactus.com

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





           reply	other threads:[~2023-06-01 14:27 UTC|newest]

Thread overview: expand[flat|nested]  mbox.gz  Atom feed
 [parent not found: <ZHiqzikAkQ+00tSm.ref@spikycactus.com>]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

  List information: https://www.gnu.org/software/guile/

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=ZHiqzikAkQ+00tSm@spikycactus.com \
    --to=bug-guile@gnu.org \
    --cc=63826@debbugs.gnu.org \
    --cc=spk121@yahoo.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).