[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 03/07: Disable scm_fork on Cygwin
From: |
Mike Gran |
Subject: |
[Guile-commits] 03/07: Disable scm_fork on Cygwin |
Date: |
Tue, 4 Apr 2017 12:16:46 -0400 (EDT) |
mike121 pushed a commit to branch wip-cygwin-guile-2.2
in repository guile.
commit 8666a34d5e8ec4e22155b40f55e53f3a652b96f2
Author: Michael Gran <address@hidden>
Date: Tue Apr 4 08:10:03 2017 -0700
Disable scm_fork on Cygwin
Cygwin's fork is incompatible with Guile's thread and GC model
* libguile/posix.c (HAVE_FORK) [__CYGWIN__]: #undef HAVE_FORK when
__CYGWIN__
---
libguile/posix.c | 8 +++++++-
1 file changed, 7 insertions(+), 1 deletion(-)
diff --git a/libguile/posix.c b/libguile/posix.c
index 041b8b1..57aee0b 100644
--- a/libguile/posix.c
+++ b/libguile/posix.c
@@ -1,6 +1,6 @@
/* Copyright (C) 1995, 1996, 1997, 1998, 1999, 2000, 2001, 2002, 2003,
* 2004, 2005, 2006, 2007, 2008, 2009, 2010, 2011, 2012, 2013,
- * 2014, 2016 Free Software Foundation, Inc.
+ * 2014, 2016, 2017 Free Software Foundation, Inc.
*
* This library is free software; you can redistribute it and/or
* modify it under the terms of the GNU Lesser General Public License
@@ -85,6 +85,12 @@
# include "posix-w32.h"
#endif
+/* Note that Cygwin's DLL 2.8.0's forking model is incompatible with
+ Guile. Forking is disabled on Cygwin. */
+#ifdef __CYGWIN__
+# undef HAVE_FORK
+#endif
+
#if HAVE_SYS_WAIT_H
# include <sys/wait.h>
#endif
- [Guile-commits] branch wip-cygwin-guile-2.2 created (now 1479125), Mike Gran, 2017/04/04
- [Guile-commits] 01/07: use fallback nl_langinfo on cygwin, Mike Gran, 2017/04/04
- [Guile-commits] 04/07: Fix socket test throw without catch, Mike Gran, 2017/04/04
- [Guile-commits] 05/07: Don't run popen tests when popen not provided, Mike Gran, 2017/04/04
- [Guile-commits] 06/07: ports test tries to mutate a read-only string, Mike Gran, 2017/04/04
- [Guile-commits] 02/07: prefer producer/consumer to pipes on Cygwin, Mike Gran, 2017/04/04
- [Guile-commits] 07/07: Skip ports tests that require popen if popen not available, Mike Gran, 2017/04/04
- [Guile-commits] 03/07: Disable scm_fork on Cygwin,
Mike Gran <=