[src] Improving how shell commands are called from python#1595
[src] Improving how shell commands are called from python#1595danpovey merged 2 commits intokaldi-asr:kaldi_52from
Conversation
|
@vimalmanohar and @vijayaditya, you may want to look at these changes just for your interest (and in case you see any problems- but not important, as I'm testing it). @vimalmanohar, this is the way I was suggesting to handle the background processes when we spoke about this before-- i.e. using python threads rather than the polling-based method. |
f6493f8 to
4bd81ce
Compare
4bd81ce to
150af1c
Compare
|
@vimalmanohar and @vijayaditya, My best guess is that this is due to some kind of deficiency in the way Python implements threads. Of course, you may point out some problem with my reasoning. |
|
From reading on the internet and searching, it seems that there may be some kind of no-no about forking from a threaded process, which we may be violating. I may try to change the code so that it creates the child process from the main thread, and just waits for it from the background thread, and I'll see if the problem goes away. |
|
The fix seems to have worked. |
No description provided.