[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/14: Clear errno before CreateProcess for MinGW.
From: |
Jan Nieuwenhuizen |
Subject: |
[Guile-commits] 04/14: Clear errno before CreateProcess for MinGW. |
Date: |
Tue, 13 Apr 2021 08:44:54 -0400 (EDT) |
janneke pushed a commit to branch wip-mingw
in repository guile.
commit f6c2687c75d02577647679a11d2bb2ec0a846cee
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 f11c526..0f0b350 100644
--- a/libguile/posix-w32.c
+++ b/libguile/posix-w32.c
@@ -683,6 +683,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 57de074), Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 01/14: gnulib: Import the gethostname module., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 04/14: Clear errno before CreateProcess for MinGW.,
Jan Nieuwenhuizen <=
- [Guile-commits] 05/14: Add 'set-binary/text-mode!' procedure for MinGW., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 06/14: Install 'mingw_take_signal' on MinGW., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 10/14: DRAFT Add partial `scm_fcntl' support for MinGW., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 11/14: guix: Add guile-patched, guile-mingw., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 02/14: Link fix for MinGW., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 03/14: Fix 'absolute-file-name?' and others for cross-build to MinGW., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 07/14: Add `scm_sigaction_for_thread' stub for MinGW., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 08/14: DRAFT Support for x86_64-w64-mingw32., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 09/14: DRAFT Make `read-bytes' suspendable for socket reads on MinGW., Jan Nieuwenhuizen, 2021/04/13
- [Guile-commits] 12/14: DEBUG guile.cmd: Some Wine help., Jan Nieuwenhuizen, 2021/04/13