From 0fc59f1e602e53c96669fa0b93a99c46472af534 Mon Sep 17 00:00:00 2001 From: Daniel Colascione Date: Wed, 11 Apr 2012 13:43:55 +0200 Subject: [PATCH] Use the real vfork under Cygwin * s/cygwin.h: The vfork the #define in cygwin.h was protecting against is gone. It's better to use vfork now so that when Cygwin gains a new, working vfork, we use it automatically. Fixes: debbugs:10398 --- src/ChangeLog | 6 ++++++ src/s/cygwin.h | 4 ---- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/src/ChangeLog b/src/ChangeLog index 9fecec34870..a55189fb3c3 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,9 @@ +2012-04-11 Daniel Colascione + + * s/cygwin.h: The vfork the #define in cygwin.h was protecting + against is gone. It's better to use vfork now so that when Cygwin + gains a new, working vfork, we use it automatically (bug#10398). + 2012-04-11 Stefan Monnier * window.c (save_window_save): Obey window-point-insertion-type. diff --git a/src/s/cygwin.h b/src/s/cygwin.h index 9a371829eaa..70d64a50c4e 100644 --- a/src/s/cygwin.h +++ b/src/s/cygwin.h @@ -81,10 +81,6 @@ along with GNU Emacs. If not, see . */ #define HAVE_SOCKETS -/* vfork() interacts badly with setsid(), causing ptys to fail to - change their controlling terminal */ -#define vfork fork - /* This should work (at least when compiling with gcc). But I have no way or intention to verify or even test it. If you encounter a problem with it, feel free to change this setting, but please add a comment here about -- 2.39.2