* 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.
This commit is contained in:
Christopher Faylor
2000-10-23 03:35:50 +00:00
parent de7ba863d8
commit ad30b4ffca
7 changed files with 35 additions and 4 deletions

View File

@ -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'. */