diff options
author | scottc <scottc> | 2002-06-30 21:24:24 +0000 |
---|---|---|
committer | scottc <scottc> | 2002-06-30 21:24:24 +0000 |
commit | e802333161f955a9f42547883255dfb2ceafd9fd (patch) | |
tree | 776820e29539b066d0beb5887bb2544629889ee8 | |
parent | e870768222de52de607227a6898e877780b41305 (diff) | |
download | gdb-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/ChangeLog | 5 | ||||
-rwxr-xr-x | winsup/cygwin/cygserver_shm.cc | 4 |
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); } |