diff src/process.c @ 253:157b30c96d03 r20-5b25

Import from CVS: tag r20-5b25
author cvs
date Mon, 13 Aug 2007 10:20:27 +0200
parents 677f6a0ee643
children 084402c475ba
line wrap: on
line diff
--- a/src/process.c	Mon Aug 13 10:20:01 2007 +0200
+++ b/src/process.c	Mon Aug 13 10:20:27 2007 +0200
@@ -868,9 +868,11 @@
   p->exit_code = 0;
 
   {
+#if !defined(__CYGWIN32__)
     /* child_setup must clobber environ on systems with true vfork.
        Protect it from permanent change.  */
-    /* char **save_environ = environ;*/
+    char **save_environ = environ;
+#endif
 
 #ifdef EMACS_BTL
     /* when performance monitoring is on, turn it off before the vfork(),
@@ -1024,7 +1026,9 @@
       cadillac_start_logging ();	/* #### rename me */
 #endif
 
-    /*    environ = save_environ;*/
+#if !defined(__CYGWIN32__)
+    environ = save_environ;
+#endif
   }
 
   if (pid < 0)