01 Nov 2003, Stefan Ritt, , Do not frob  
 | 
> I found where we tickle the race condition in db_create_record().
 
> 
 
> 1) in mhttpd.c,  every time we show the status page, we call
 | 
   
   01 Nov 2003, Stefan Ritt, , more odb  
 | 
> I added error checking to the places where we read "/runinfo/run number". In
 
> general, I do this:
 
 | 
   
   14 Nov 2003, Stefan Ritt, , more odb  
 | 
Ok, I apologize. It's all ok. Thanks for clearifying. Concerning the assert's, it 
 
would be nice to be able to disable them in release code. Under Windows, the 
 
assert() is actually a macro which expands to zero if NDEBUG is defined. I 
 | 
   
   16 Nov 2003, Stefan Ritt, , Phantom  
 | 
I have seen the same behaviour and it annoys me, too. What I did in the past 
 
is a "cleanup" in ODBEdit which removes these open records. I have soem code 
 
in cm_watchdog(), which should take care of that. If a client is dead, it 
 | 
   17 Nov 2003, Stefan Ritt, , Revised MVMESTD 
 | 
Let me propose a revised scheme for midas standard VME calls (mvmestd.h). 
 
 
Pierre mentioned some limitations before, and I find now also some fields 
 | 
   20 Nov 2003, Stefan Ritt, , Implementation of db_check_record() 
 | 
As Konstantin pointed out correctly, the db_create_record() call is pretty 
 
heavy since it copies whole structures around the ODB. Therefore, it 
 
should not used frequently. It might be that several problems are caused 
 | 
   
   20 Nov 2003, Stefan Ritt, , Phantom  
 | 
I tried to reproduce the problem, but without success. So in case this happens 
 
again, one should debug the code im cm_watchdog() next to the line
 
 | 
   
   20 Nov 2003, Stefan Ritt, , cannot shutdown defunct clients 
 | 
> 1) shutdown from mhttpd "programs" page -> "cannot shutdown client"
 
> 2) "sh mhttpd" from odbedit -> 
 
>    [midas.c:5298:cm_shutdown] cannot connect to client mhttpd on host
 | 
   
   20 Nov 2003, Stefan Ritt, , set-uid-root midas programs 
 | 
> dio- is required to be setuid-root to gain I/O permissions. I looked at it a
 
> few times, and it is probably safe, but I would like to get a second
 
> opinion. Stephan, can you should it to your local security geeks?
 | 
   
   20 Nov 2003, Stefan Ritt, , cannot shutdown defunct clients 
 | 
> INT == "int", wraparound in 1 month
 
> DWORD == "unsigned int", wraparound in 2 months
 
> 
 | 
   
   21 Nov 2003, Stefan Ritt, , Revised MVMESTD 
 | 
Thanks for your contribution. Let me try to map your functionality to mvmestd calls:
 
 
> A) The VMIC vme_slave_xxx() options are not considered.
 | 
   
   24 Nov 2003, Stefan Ritt, , cannot shutdown defunct clients 
 | 
> But there is one problem with "cleanup". It has a hardwired timeout of
 
> 2 seconds.  This is a problem for tasks like lazylogger which set a timeout
 
> of 60 seconds when moving the tape. So BEWARE, if you issue the "cleanup"
 | 
   
   30 Nov 2003, Stefan Ritt, , bad call to cm_cleanup() in fal.c 
 | 
> fal.c does not compile: it calls cm_cleanup() with one argument when there
 
> should be two arguments. K.O.
 
 | 
   
   30 Nov 2003, Stefan Ritt, , Implementation of db_check_record() 
 | 
| Fixed and committed. Can you check if it's working? | 
   
   01 Dec 2003, Stefan Ritt, , delete key followed by create record leads to empty structure in experim.h 
 | 
> I have noticed a problem with deleting a key to an array in odb, then
 
> recreating the record as in the code below. The record is recreated
 
> successfully, but when viewing it with mhttpd, a spurious blank line
 | 
   
   12 Dec 2003, Stefan Ritt, , db_close_record  non-local/non-return 
 | 
Hi Paul,
 
 
sorry my late reply, I had to find some time for debugging your problem. 
 | 
   12 Dec 2003, Stefan Ritt, , Several small fixes and changes 
 | 
I committed several small fixes and changes:
 
 
- install.txt which mentions explicitly ROOT
 | 
   15 Dec 2003, Stefan Ritt, , Poll about default indent style  
 | 
Dear all,
 
 
there are continuing requests about the C indent style we use in midas. As 
 | 
   
   18 Dec 2003, Stefan Ritt, , Alarm on no ping? 
 | 
> I want midas alarms to go off when I cannot ping arbitrary remote hosts. Is
 
> there is easy/preferred way to do this? K.O.
 
 | 
   
   18 Dec 2003, Stefan Ritt, , Poll about default indent style  
 | 
Hi Paul,
 
 
I agree with you that a nesting level of more than 4-5 is a bad thing, but I 
 |