rtl-sdr-blog/src
Pete Zaitcev ce9595ef53 rtl_adsb: fix hanging upon a signal in Fedora 27
This code stayed unchanged for many years, but for some reason
rtl_adsb started hanging upon exit:

*b66116a5164b69281eacc42ae950;
^CSignal caught, exiting!
 <------ hangs here forever

Examining it with gdb reveals that the demod thread waits
peacefully on the condition variable, which we're trying to
destroy. Either the signals killed all threads before, or
condition variables were possible to destroy while other
threads still waited on them.

The easiest fix appears to be just cancel the demod thread
and wait for it to exit before proceeding for the door.

Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-23 23:20:26 +02:00
..
convenience cosmetic: Fix "implicit fall-through" gcc 7.3.0 warnings 2018-04-18 23:59:17 +02:00
getopt add local copy of getopt() for win32 build 2012-05-29 02:13:18 +02:00
CMakeLists.txt cmake: include resource file for MSVC builds 2014-08-26 21:26:26 +02:00
librtlsdr.c lib: use USB zero-copy transfers if possible 2018-05-01 14:23:37 +02:00
Makefile.am unbreak 'make distcheck' with automake 2014-01-26 13:49:39 +01:00
rtl_adsb.c rtl_adsb: fix hanging upon a signal in Fedora 27 2018-05-23 23:20:26 +02:00
rtl_eeprom.c cosmetic: Fix "implicit fall-through" gcc 7.3.0 warnings 2018-04-18 23:59:17 +02:00
rtl_fm.c fix "-Wshift-negative-value" compiler warning on ggc-7.3.0 2018-04-18 23:59:17 +02:00
rtl_power.c Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp) 2017-06-13 01:20:32 +02:00
rtl_sdr.c lib: change default number of transfers to 15 2014-02-10 23:57:19 +01:00
rtl_tcp.c Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp) 2017-06-13 01:20:32 +02:00
rtl_test.c rtl_test: fix build on Mac OS 2018-04-26 23:51:15 +02:00
rtlsdr.rc.in cmake: include resource file for MSVC builds 2014-08-26 21:26:26 +02:00
tuner_e4k.c Correct return code of e4k_reg_write(). 2015-05-08 11:10:30 +02:00
tuner_fc0012.c tuner_fc001x: fix tuning for frequencies < 45 MHz 2012-10-03 17:19:29 +02:00
tuner_fc0013.c tuner_fc0013: disable loopthrough output 2012-10-28 22:24:37 +01:00
tuner_fc2580.c fix a -Wuninitialized warning 2012-04-25 22:47:30 +02:00
tuner_r82xx.c Allow setting bandwidth for R820T 2015-05-16 00:37:17 +02:00