Back Midas Rome Roody Rootana
  Midas DAQ System  Not logged in ELOG logo
Entry  10 Jan 2019, Konstantin Olchanski, Info, removal of cm_watchdog() 
    Reply  21 Jan 2019, Konstantin Olchanski, Info, removal of cm_watchdog() 
       Reply  24 Jan 2019, Konstantin Olchanski, Info, removal of cm_watchdog() 
Message ID: 1439     Entry time: 21 Jan 2019     In reply to: 1435     Reply to this: 1442
Author: Konstantin Olchanski 
Topic: Info 
Subject: removal of cm_watchdog() 
> cm_watchdog() has been removed from the latest midas sources
> Removal of cm_watchdog() solves many problems in the midas code base:

Removal of cm_watchdog() creates new problems:

a) the bm_send_event(BM_WAIT) and bm_receive_event(BM_WAIT) wait for free space and wait for new event do not update the timeouts (need to add a call 
to cm_periodic_tasks())
b) frontends that talk to slow external equipment now die unless they have their timeout adjusted to be longer than the longest equipment operation (they 
were already supposed to do this, but...)
c) mhttpd sometimes dies from from an odb timeout (with the default 10 sec timeout).

As one solution, we may bring an automatic cm_watchdog() back, but running from a thread instead of from SIGALARM.

K.O.
ELOG V3.1.4-2e1708b5