> There was a bit of confusion on the MIDAS Programs page with programs that have
> similar names. This confusion relates to the use of bUnique in cm_shutdown() and
> cm_exist().
Final disposition:
1) cm_shutdown() takes the exact client name, no confusion leading to shutdown of wrong frontend.
2) cm_exist() takes the exact client name if bClientName is true, or the exact program name if bClientName is false.
cm_exist() with a program name is used by the alarm code to check the "program not running" alarms:
for example, "odbedit is not running" should fire only if all clients with program name "odbedit" are
not running. actual client names (if many odbedit are present) would be "odbedit", "odbedit1", "odbedit2", etc,
and they all have the same program name "odbedit".
program name is a new thing, stored in ODB /System/Clients/pid/Program next to the client name (pid/Name).
3) the "stop program" button on the MIDAS Programs page has a list of all MIDAS clients, loops over them
and shuts down all clients with matching program name.
K.O. |