Closed eflumerf closed 2 years ago
Comment by @jcfreeman2 on 2019-02-11 21:13:19
On further investigation, the hang was occurring whenever anything was typed into the shell DAQInterface was running in. Ron suggested I have DAQInterface ignore stdin by adding "<&-" to the DAQInterface alias. Change has been added to feature/issue21804_daqinterface_hang.
Comment by @jcfreeman2 on 2019-02-12 04:17:22
I've tested DAQInterface on feature/issue21804_daqinterface_hang; typing input into the same shell that DAQInterface is running in now appears to have no effect.
Comment by @eflumerf on 2019-02-12 22:13:08
Reviewed code and made sure that things work properly with the new code.
Comment by @jcfreeman2 on 2019-02-14 19:06:37
Using the fix Ron suggested appears to have solved the problem, as tested by myself and by Eric. Merged feature/issue21804_daqinterface_hang into develop and deleted the branch (feature/issue21804_daqinterface_hang, not develop).
Comment by @jcfreeman2 on 2019-02-19 20:46:31
I'm un-closing this Issue since the protocol is to close an Issue when there's an official release. Having said that, I consider this Issue to be "Reviewed" (not "Resolved" as marked) but for whatever reason that option's not appearing in my drop-down list.
This issue has been migrated from https://cdcvs.fnal.gov/redmine/issues/21804 (FNAL account required) Originally created by @jcfreeman2 on 2019-01-30 17:35:43
Specifically, what I'm finding is that in the scenario that during the configuration transition DAQInterface expects a FHiCL document but can't find it among the subconfigurations it's been given, DAQInterface will (as expected), announce the problem and set itself back into the Booted state. just_do_it.sh will then, as expected, print
...however, even though DAQInterface was launched prior to the execution of just_do_it.sh (i.e., just_do_it.sh doesn't "own" DAQInterface, it requires DAQInterface to already be up), DAQInterface will no longer respond to XML-RPC calls. It would be nice if, should something go wrong with a transition in just_do_it.sh, even if just_do_it.sh exits out DAQinterface should still function properly.