[BRLTTY] BRLTTY crash

Dave Mielke dave at mielke.cc
Mon Sep 26 17:55:49 EDT 2016


[quoted lines by Sebastian Humenda on 2016/09/26 at 20:42 +0200]

>I've done so. I'll send you the log file off-list.

Thanks. I think I've figured it out. Please test the attached patch 
(speech-crash-1.patch). Remember to remove your patch, too. I think this 
explains other speech start failure crashes, too.

>The manual page mentions numbers for -l, 

Those are the actual syslog values. They go from 0 up to 7, with a larer value 
meaning more verbosity. Really, they're just still supported for old time's 
sake.

>but does not explain the options debug or speech. Could this be added? 

Yes, the help for -l could be extended with explanations. It'd make the output 
kind of huge, though.

>I'm looking for an option to log any keyboard-related events, if possible.

Use kbdkeys for your keyboard, and use brlkeys for your braille device.

-- 
Dave Mielke           | 2213 Fox Crescent | The Bible is the very Word of God.
Phone: 1-613-726-0014 | Ottawa, Ontario   | http://Mielke.cc/bible/
EMail: Dave at Mielke.cc | Canada  K2A 1H7   | http://FamilyRadio.org/
-------------- next part --------------
diff --git a/Programs/spk_thread.c b/Programs/spk_thread.c
index 288518c..49fffaf 100644
--- a/Programs/spk_thread.c
+++ b/Programs/spk_thread.c
@@ -253,7 +253,7 @@ testThreadValidity (volatile SpeechDriverThread *sdt) {
 
     if (spk) {
       if (sdt == spk->driver.thread) {
-        if (!sdt->stopping) {
+        if (sdt->threadState == THD_READY) {
           return 1;
         }
       }


More information about the BRLTTY mailing list