delayed transitions - '/Programs/Execute on start run' issue
When a deferred transition is registered as part of a frontend's "start", Midas silently fails to run the script specified in the ODB key '/Programs/Execute on start run'.
I traced this back to the function cm_runtransition2, which returns the value CM_DEFERRED_TRANSITION before it runs the system command if there's a registered, deferred transition (in our case, a deferred stop).
The return-upon-finding-a-deferred-transition happens on line 4038 of midas.c; this block of code is headed by the helpful comment, "search database for clients with deferred transition request". The system call happens on line 4073 in midas.c; the system call block is headed by the comment, "execute programs on start".
Comments (5)
-
-
reporter Would these issues be easier to work with as pull requests?
I'm not expecting that you'd merge them, but it might make the affected code easier to investigate.
-
Sure, make a pull request and we will have a look at it, and most likely merge it.
-
reporter I've just tried reproducing this bug in a simpler environment, and I can't - I suspect the issue was with the script we were trying to run, not with the Midas code.
It appears that this bug = totally not a Midas bug.
-
- changed status to resolved
- Log in to comment
Dear Amy, sorry for my late reply. I have your issue on my to-do list you posted the original message in the Forum. I'm swamped rigth now with beam time related work, but will come back to this later, I promise!
Stefan