* 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.
This commit is contained in:
Corinna Vinschen
2008-07-15 11:42:45 +00:00
parent dc4b5caedc
commit 80f6f52cb1
5 changed files with 25 additions and 40 deletions

View File

@ -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);