[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 04/15: Clear errno before CreateProcess for MinGW.
From: |
Jan Nieuwenhuizen |
Subject: |
[Guile-commits] 04/15: Clear errno before CreateProcess for MinGW. |
Date: |
Mon, 12 Apr 2021 05:55:42 -0400 (EDT) |
janneke pushed a commit to branch wip-mingw
in repository guile.
commit 722351eb786fe79db918d2dbeaf2c592faf4e05e
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..bfeb971 100644
--- a/libguile/posix-w32.c
+++ b/libguile/posix-w32.c
@@ -618,6 +618,10 @@ start_child (const char *exec_file, char **argv,
intptr_t pid;
int bin_sh_replaced = 0;
+ /* When running in WINE, chances are we hit ENOENT (possibly transated
+ to ENOEXEC). */
+ errno = 0;
+
if (!reading)
c2p[1] = outfd;
if (!writing)
- [Guile-commits] 02/15: ice-9 ftw: Use 'absolute-file-name?' in 'nftw'., (continued)
- [Guile-commits] 02/15: ice-9 ftw: Use 'absolute-file-name?' in 'nftw'., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 10/15: DRAFT Support for x86_64-w64-mingw32., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 15/15: DEBUG guile.cmd: Some Wine help., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 05/15: Compile fix for x86_64-MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 06/15: Add 'set-mode' procedure for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 11/15: DRAFT Add partial `scm_fcntl' support for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 08/15: Make `read-bytes' suspendable for socket reads on MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 12/15: Define 'SIGHUP' for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 01/15: Document write-line., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 03/15: Fix 'gethostname' prototype for x86_64-MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 04/15: Clear errno before CreateProcess for MinGW.,
Jan Nieuwenhuizen <=
- [Guile-commits] 07/15: Add `scm_sigaction_for_thread' stub for MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 09/15: Install 'mingw_take_signal' on MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 13/15: Fix 'absolute-file-name?' and others for cross-build to MinGW., Jan Nieuwenhuizen, 2021/04/12
- [Guile-commits] 14/15: guix: Add guile-patched, guile-mingw., Jan Nieuwenhuizen, 2021/04/12