diff options
author | Corinna Vinschen <corinna@vinschen.de> | 2008-07-15 11:42:45 +0000 |
---|---|---|
committer | Corinna Vinschen <corinna@vinschen.de> | 2008-07-15 11:42:45 +0000 |
commit | 80f6f52cb1e673a5196cc18de0a4bfb1f492b80d (patch) | |
tree | ce9d656994cf57ee39f9cbc02f9f0ce8089dfe1d /winsup/cygwin/shared.cc | |
parent | dc4b5caedcd9f461900b9dfe53c1d7c59aa4cd82 (diff) | |
download | cygnal-80f6f52cb1e673a5196cc18de0a4bfb1f492b80d.tar.gz cygnal-80f6f52cb1e673a5196cc18de0a4bfb1f492b80d.tar.bz2 cygnal-80f6f52cb1e673a5196cc18de0a4bfb1f492b80d.zip |
* fhandler_tape.cc (mtinfo::initialize): Remove synchronization stuff.
Just initialize drive data.
* mtinfo.h (MTINFO_MAGIC): Remove.
(MTINFO_VERSION): Remove.
(class mtinfo): Remove magic and version members.
* shared.cc (shared_info::initialize): Move call to
get_session_parent_dir so that the dir creation is only called once.
Move call to mt.initialize so that it's called only by the first
process creating the shared memory.
* shared_info.h (SHARED_INFO_CB): Accommodate change to shared_info.
(CURR_SHARED_MAGIC): Ditto.
(class shared_info): Add obcaseinsensitivity member.
Diffstat (limited to 'winsup/cygwin/shared.cc')
-rw-r--r-- | winsup/cygwin/shared.cc | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/winsup/cygwin/shared.cc b/winsup/cygwin/shared.cc index b2a1b68a5..047d97895 100644 --- a/winsup/cygwin/shared.cc +++ b/winsup/cygwin/shared.cc @@ -256,17 +256,15 @@ shared_info::initialize () } heap_init (); + get_session_parent_dir (); /* Create session dir if first process. */ if (!sversion) { tty.init (); /* Initialize tty table. */ + mt.initialize (); /* Initialize shared tape information. */ cb = sizeof (*this); /* Do last, after all shared memory initialization */ } - mt.initialize (); /* Initialize shared tape information. */ - - get_session_parent_dir (); /* Create session dir if first process. */ - if (cb != SHARED_INFO_CB) system_printf ("size of shared memory region changed from %u to %u", SHARED_INFO_CB, cb); |