summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorscottc <scottc>2002-06-30 21:24:24 +0000
committerscottc <scottc>2002-06-30 21:24:24 +0000
commite802333161f955a9f42547883255dfb2ceafd9fd (patch)
tree776820e29539b066d0beb5887bb2544629889ee8
parente870768222de52de607227a6898e877780b41305 (diff)
downloadgdb-e802333161f955a9f42547883255dfb2ceafd9fd.tar.gz
* cygserver_shm.cc (server_shmmgr::server_shmmgr): All fields have
to be initialized now that the singleton is no longer static.
-rw-r--r--winsup/cygwin/ChangeLog5
-rwxr-xr-xwinsup/cygwin/cygserver_shm.cc4
2 files changed, 8 insertions, 1 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index f78a7609cf8..00b15c14b94 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,10 @@
2002-06-30 Conrad Scott <conrad.scott@dsl.pipex.com>
+ * cygserver_shm.cc (server_shmmgr::server_shmmgr): All fields have
+ to be initialized now that the singleton is no longer static.
+
+2002-06-30 Conrad Scott <conrad.scott@dsl.pipex.com>
+
* cygserver_shm.cc (server_shmmgr::_instance): New static field.
(server_shmmgr::_instance_once): Ditto.
(server_shmmgr::initialise_instance): New static method.
diff --git a/winsup/cygwin/cygserver_shm.cc b/winsup/cygwin/cygserver_shm.cc
index 8d69e07af14..5551494161d 100755
--- a/winsup/cygwin/cygserver_shm.cc
+++ b/winsup/cygwin/cygserver_shm.cc
@@ -360,7 +360,9 @@ server_shmmgr::initialise_instance ()
*---------------------------------------------------------------------------*/
server_shmmgr::server_shmmgr ()
- : _segments_head (NULL)
+ : _segments_head (NULL),
+ _shmid_cnt (0),
+ _shmid_max (0)
{
InitializeCriticalSection (&_segments_lock);
}