From 4f7831c1f56b3a77fdc35d93952b604405b66af4 Mon Sep 17 00:00:00 2001 From: Christopher Faylor Date: Sat, 25 Mar 2000 05:25:27 +0000 Subject: [PATCH] * environ.cc: Add TMPDIR to the list of environment variables which are converted to POSIX format. * sigproc.cc (proc_terminate): Don't attempt to delete when a muto pointer is NULL. --- winsup/cygwin/ChangeLog | 7 +++++++ winsup/cygwin/dcrt0.cc | 2 +- winsup/cygwin/environ.cc | 2 ++ winsup/cygwin/sigproc.cc | 7 +++++-- 4 files changed, 15 insertions(+), 3 deletions(-) diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog index 1508dee87..ebaefe946 100644 --- a/winsup/cygwin/ChangeLog +++ b/winsup/cygwin/ChangeLog @@ -1,3 +1,10 @@ +Sat Mar 25 00:22:32 2000 Christopher Faylor + + * environ.cc: Add TMPDIR to the list of environment variables which are + converted to POSIX format. + * sigproc.cc (proc_terminate): Don't attempt to delete when a muto + pointer is NULL. + Sun Mar 19 12:01:00 2000 Corinna Vinschen * syscalls.cc (stat_worker): Set st_nlink to 1 on remote drives. diff --git a/winsup/cygwin/dcrt0.cc b/winsup/cygwin/dcrt0.cc index b9e2225d9..b05b215e8 100644 --- a/winsup/cygwin/dcrt0.cc +++ b/winsup/cygwin/dcrt0.cc @@ -149,7 +149,7 @@ host_dependent_constants NO_COPY host_dependent; /* Constructor for host_dependent_constants. */ void -host_dependent_constants::init (void) +host_dependent_constants::init () { /* fhandler_disk_file::lock needs a platform specific upper word value for locking entire files. diff --git a/winsup/cygwin/environ.cc b/winsup/cygwin/environ.cc index ba3120fe3..b09fe90e9 100644 --- a/winsup/cygwin/environ.cc +++ b/winsup/cygwin/environ.cc @@ -41,6 +41,8 @@ static win_env conv_envvars[] = return_MAX_PATH, return_MAX_PATH}, {"LD_LIBRARY_PATH=", 16, NULL, NULL, cygwin_conv_to_full_posix_path, cygwin_conv_to_full_win32_path, return_MAX_PATH, return_MAX_PATH}, + {"TMPDIR=", 7, NULL, NULL, cygwin_conv_to_full_posix_path, cygwin_conv_to_full_win32_path, + return_MAX_PATH, return_MAX_PATH}, {NULL, 0, NULL, NULL, NULL, NULL, 0, 0} }; diff --git a/winsup/cygwin/sigproc.cc b/winsup/cygwin/sigproc.cc index bb6be1237..a9f7c17ac 100644 --- a/winsup/cygwin/sigproc.cc +++ b/winsup/cygwin/sigproc.cc @@ -532,8 +532,11 @@ proc_terminate (void) * non-raceable manner. */ muto *m = sync_proc_subproc; - sync_proc_subproc = NULL; - delete m; + if (m) + { + sync_proc_subproc = NULL; + delete m; + } } sip_printf ("leaving"); }