Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  14 Dec 2004, Konstantin Olchanski, Info, Commit local TWIST modifications 
    Reply  14 Dec 2004, Konstantin Olchanski, Info, Commit local TWIST modifications 
       Reply  14 Dec 2004, Konstantin Olchanski, Info, mhttpd: Commit local TWIST modifications 
       Reply  15 Dec 2004, Stefan Ritt, Info, Commit local TWIST modifications 
          Reply  16 Dec 2004, Konstantin Olchanski, Info, "cd /" in ss_daemon_init(), was- Commit local TWIST modifications 
Message ID: 178     Entry time: 14 Dec 2004     Reply to this: 179
Author: Konstantin Olchanski 
Topic: Info 
Subject: Commit local TWIST modifications 
I am commiting MIDAS modification accumulated during the last few months of running TWIST:
1) system.c::ss_shm_open() fail if trying to map a file that is smaller than we expect.
2) midas.c::bm_lock_buffer(), el_submit(), el_delete_message(): do not wait for mutexes forever, use a 5 
minute timeout. If we can't get the lock, cm_msg()/abort().
The above helps dealing with complete midas freezes. I also have code to keep track of "who locked
the mutex *and* is still holding it?!?" but it is way too ugly to commit. I wish we had a "lockedByPid"
entry for all lockable objects.
K.O.
 
ELOG V3.1.4-2e1708b5