Thanks for the reply. I’ll have to look into that as the possible root cause.
I’ve identified two workarounds for the problem:
Don’t read the output from hciprocstatus – just look at the exit code and use -p and -e options (the bgerror in tcl happens because of a pipe failure–if there’s no redirection of its stdout/stderr, the bgerror does not occur)
Add file to the site to force hciprocstatus to exit with the following tcl proc:
proc bgerror err {
exit 69
}