[66579] trunk/base/src/pextlib1.0/Pextlib.c
jmr at macports.org
jmr at macports.org
Sat Apr 17 01:01:54 PDT 2010
Revision: 66579
http://trac.macports.org/changeset/66579
Author: jmr at macports.org
Date: 2010-04-17 01:01:47 -0700 (Sat, 17 Apr 2010)
Log Message:
-----------
work around Tcl env behaviour that can cause a crash
Modified Paths:
--------------
trunk/base/src/pextlib1.0/Pextlib.c
Modified: trunk/base/src/pextlib1.0/Pextlib.c
===================================================================
--- trunk/base/src/pextlib1.0/Pextlib.c 2010-04-17 06:54:39 UTC (rev 66578)
+++ trunk/base/src/pextlib1.0/Pextlib.c 2010-04-17 08:01:47 UTC (rev 66579)
@@ -399,6 +399,10 @@
#else
clearenv();
#endif
+ /* "If the entire env array is unset then Tcl will stop monitoring
+ env accesses and will not update environment variables."
+ - <http://www.tcl.tk/man/tcl8.4/TclCmd/tclvars.htm#M4> */
+ setenv("MACPORTS_DUMMY", "", 0);
} else {
(void) unsetenv(name);
}
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20100417/b77c73bc/attachment.html>
More information about the macports-changes
mailing list