summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2000-03-25 05:25:27 +0000
committerChristopher Faylor <me@cgf.cx>2000-03-25 05:25:27 +0000
commit4f7831c1f56b3a77fdc35d93952b604405b66af4 (patch)
tree1894a5c9524db6994cd130dc7861108cd579ff72
parent85f96eabae928d3f4267b0e9dc23835923d8bdbd (diff)
downloadcygnal-4f7831c1f56b3a77fdc35d93952b604405b66af4.tar.gz
cygnal-4f7831c1f56b3a77fdc35d93952b604405b66af4.tar.bz2
cygnal-4f7831c1f56b3a77fdc35d93952b604405b66af4.zip
* 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.
-rw-r--r--winsup/cygwin/ChangeLog7
-rw-r--r--winsup/cygwin/dcrt0.cc2
-rw-r--r--winsup/cygwin/environ.cc2
-rw-r--r--winsup/cygwin/sigproc.cc7
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 <cgf@cygnus.com>
+
+ * 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 <corinna@vinschen.de>
* 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");
}