summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/environ.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-10-23 03:35:50 +0000
committerChristopher Faylor <me@cgf.cx>2000-10-23 03:35:50 +0000
commitad30b4ffcaded89b97dd812b810f73386ce6e034 (patch)
tree1927fd0db3a020e01eb43a2df0ff08318b89e91a /winsup/cygwin/environ.cc
parentde7ba863d84c416776e1af23d923ffe0189e63e9 (diff)
downloadcygnal-ad30b4ffcaded89b97dd812b810f73386ce6e034.tar.gz
cygnal-ad30b4ffcaded89b97dd812b810f73386ce6e034.tar.bz2
cygnal-ad30b4ffcaded89b97dd812b810f73386ce6e034.zip
* fork.cc (fork): Set sigframe here, since it can pause for a considerable
amount of time. * environ.cc (_addenv): Add debugging. * fhandler.cc: Eliminate unneeded include. * smallprint.c: Ditto.
Diffstat (limited to 'winsup/cygwin/environ.cc')
-rw-r--r--winsup/cygwin/environ.cc7
1 files changed, 6 insertions, 1 deletions
diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc
index 016d0368d..c9973273f 100644
--- a/winsup/cygwin/environ.cc
+++ b/winsup/cygwin/environ.cc
@@ -234,7 +234,12 @@ _addenv (const char *name, const char *value, int overwrite)
__cygwin_environ, sz);
if (!__cygwin_environ)
- return -1; /* Oops. No more memory. */
+ {
+#ifdef DEBUGING
+ try_to_debug ();
+ return -1; /* Oops. No more memory. */
+#endif
+ }
__cygwin_environ[offset + 1] = NULL; /* NULL terminate. */
update_envptrs (); /* Update any local copies of 'environ'. */