[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 06/16: Clear errno before CreateProcess for MinGW.
From: |
Jan Nieuwenhuizen |
Subject: |
[Guile-commits] 06/16: Clear errno before CreateProcess for MinGW. |
Date: |
Wed, 11 May 2022 17:45:22 -0400 (EDT) |
janneke pushed a commit to branch wip-mingw
in repository guile.
commit 9fa09042c14324e6287077dfb292a4dbf579fc67
Author: Jan (janneke) Nieuwenhuizen <janneke@gnu.org>
AuthorDate: Wed Apr 1 18:03:09 2020 +0200
Clear errno before CreateProcess for MinGW.
* libguile/posix-w32.c (start_child): Avoid recursing (and breaking any
PIPE setup) when running in WINE.
---
libguile/posix-w32.c | 4 ++++
1 file changed, 4 insertions(+)
diff --git a/libguile/posix-w32.c b/libguile/posix-w32.c
index 44f033da1..2bcc31696 100644
--- a/libguile/posix-w32.c
+++ b/libguile/posix-w32.c
@@ -685,6 +685,10 @@ start_child (const char *exec_file, char **argv,
cmdline = prepare_cmdline (exec_file, (const char * const *)argv,
bin_sh_replaced);
+ /* When running in WINE, chances are we hit ENOENT (possibly
+ translated to ENOEXEC). */
+ errno = 0;
+
/* All set and ready to fly. Launch the child process. */
if (!CreateProcess (progfile, cmdline, NULL, NULL, TRUE, 0, env_block, NULL,
&si, &pi))
- [Guile-commits] branch wip-mingw created (now 1f41daf1f), Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 01/16: gnulib: Import the gethostname module., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 02/16: Link fix for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 06/16: Clear errno before CreateProcess for MinGW.,
Jan Nieuwenhuizen <=
- [Guile-commits] 08/16: squash! Fix 'absolute-file-name?' and others for cross-build to MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 04/16: Add 'set-port-binary/text-mode!' procedure for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 09/16: Make `read-bytes' suspendable for socket reads on MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 10/16: Install 'mingw_take_signal' on MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 14/16: REMOVEME mingw: Hardcode compile-time-file-name-convention to 'mingw., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 15/16: REMOVEME guix: guile-mingw: Hardcode file-name-convention., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 16/16: DEBUG guile.cmd, wine-guile.sh: Some Wine help., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 11/16: Add `scm_sigaction_for_thread' stub for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 12/16: DRAFT Add partial `scm_fcntl' support for MinGW., Jan Nieuwenhuizen, 2022/05/11
- [Guile-commits] 03/16: mingw: canonicalize-path: Also canonicalize drive letter and '/'., Jan Nieuwenhuizen, 2022/05/11