* 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:
parent
de7ba863d8
commit
ad30b4ffca
|
@ -1,3 +1,11 @@
|
||||||
|
Sun Oct 22 23:33:00 2000 Christopher Faylor <cgf@cygnus.com>
|
||||||
|
|
||||||
|
* 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.
|
||||||
|
|
||||||
Sun Oct 22 12:07:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
Sun Oct 22 12:07:00 2000 Corinna Vinschen <corinna@vinschen.de>
|
||||||
|
|
||||||
* pinfo.cc (pinfo_init): Eliminate call to `set_process_privileges'.
|
* pinfo.cc (pinfo_init): Eliminate call to `set_process_privileges'.
|
||||||
|
|
|
@ -234,7 +234,12 @@ _addenv (const char *name, const char *value, int overwrite)
|
||||||
__cygwin_environ, sz);
|
__cygwin_environ, sz);
|
||||||
|
|
||||||
if (!__cygwin_environ)
|
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. */
|
__cygwin_environ[offset + 1] = NULL; /* NULL terminate. */
|
||||||
update_envptrs (); /* Update any local copies of 'environ'. */
|
update_envptrs (); /* Update any local copies of 'environ'. */
|
||||||
|
|
|
@ -14,7 +14,6 @@ details. */
|
||||||
#include <unistd.h>
|
#include <unistd.h>
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include "cygheap.h"
|
#include "cygheap.h"
|
||||||
#include <string.h>
|
|
||||||
#include <sys/cygwin.h>
|
#include <sys/cygwin.h>
|
||||||
#include <signal.h>
|
#include <signal.h>
|
||||||
#include "cygerrno.h"
|
#include "cygerrno.h"
|
||||||
|
|
|
@ -1152,7 +1152,7 @@ fhandler_console::write (const void *vsrc, size_t len)
|
||||||
{
|
{
|
||||||
case normal:
|
case normal:
|
||||||
src = write_normal (src, end);
|
src = write_normal (src, end);
|
||||||
if (src == 0) /* write_normal fail */
|
if (!src) /* write_normal failed */
|
||||||
return -1;
|
return -1;
|
||||||
break;
|
break;
|
||||||
case gotesc:
|
case gotesc:
|
||||||
|
|
|
@ -580,6 +580,7 @@ fork ()
|
||||||
} grouped;
|
} grouped;
|
||||||
|
|
||||||
MALLOC_CHECK;
|
MALLOC_CHECK;
|
||||||
|
sigframe thisframe (mainthread);
|
||||||
|
|
||||||
debug_printf ("entering");
|
debug_printf ("entering");
|
||||||
grouped.hParent = grouped.first_dll = NULL;
|
grouped.hParent = grouped.first_dll = NULL;
|
||||||
|
|
|
@ -170,6 +170,17 @@ path_conv::check (const char *src, unsigned opt,
|
||||||
symlink_info sym;
|
symlink_info sym;
|
||||||
bool need_directory = 0;
|
bool need_directory = 0;
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
static path_conv last_path_conv;
|
||||||
|
static char last_src[MAX_PATH + 1];
|
||||||
|
|
||||||
|
if (*last_src && strcmp (last_src, src) == 0)
|
||||||
|
{
|
||||||
|
*this = last_path_conv;
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
char *rel_path, *full_path;
|
char *rel_path, *full_path;
|
||||||
|
|
||||||
if (!(opt & PC_NULLEMPTY))
|
if (!(opt & PC_NULLEMPTY))
|
||||||
|
@ -392,6 +403,14 @@ out:
|
||||||
tmp_buf, full_path, volflags & FS_PERSISTENT_ACLS);
|
tmp_buf, full_path, volflags & FS_PERSISTENT_ACLS);
|
||||||
set_has_acls (volflags & FS_PERSISTENT_ACLS);
|
set_has_acls (volflags & FS_PERSISTENT_ACLS);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if 0
|
||||||
|
if (!error)
|
||||||
|
{
|
||||||
|
last_path_conv = *this;
|
||||||
|
strcpy (last_src, src);
|
||||||
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
#define deveq(s) (strcasematch (name, (s)))
|
#define deveq(s) (strcasematch (name, (s)))
|
||||||
|
|
|
@ -10,7 +10,6 @@ details. */
|
||||||
|
|
||||||
#include "winsup.h"
|
#include "winsup.h"
|
||||||
#include <stdarg.h>
|
#include <stdarg.h>
|
||||||
#include <string.h>
|
|
||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
#include <ctype.h>
|
#include <ctype.h>
|
||||||
#include <windows.h>
|
#include <windows.h>
|
||||||
|
|
Loading…
Reference in New Issue