aboutsummaryrefslogtreecommitdiffstats
path: root/src/rtl_adsb.c
AgeCommit message (Collapse)AuthorFilesLines
2024-02-16improve CLI usage docs: '-d' also accepts serialhayati ayguen1-1/+1
commit e30dbd52b638629d58ae6e33ebcf5a2d71a768a5 in https://github.com/librtlsdr/librtlsdr Signed-off-by: hayati ayguen <h_ayguen@web.de> [F. Schmidt: rebased on latest master] Signed-off-by: Fabian P. Schmidt <kerel@mailbox.org>
2022-12-17Fix signal handler from getting stuck in an endless loopTobias Girstmair1-0/+1
The signal handler for SIGINT/TERM/QUIT and, importantly, SIGPIPE tries to write an informational message to stderr. When however stderr is redirected to a closed pipe, this will cause (another) SIGPIPE, and in turn the signal handler will get called again, and again and again. Since we intend to exit rtl_fm anyways, we can just ignore this signal.
2018-07-03Fix inline functions to use 'static inline'David Woodhouse1-4/+4
With just 'inline', if the compiler decides not to inline them, it isn't required to emit them at all. For some targets with -Os that is causing build failures, see https://gcc.gnu.org/bugzilla/show_bug.cgi?id=86360. Perhaps we might consider using '__attribute__((always_inline))' for GCC builds, but 'static inline' is a good start. Signed-off-by: Steve Markgraf <steve@steve-m.de>
2018-05-23rtl_adsb: fix hanging upon a signal in Fedora 27Pete Zaitcev1-0/+2
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>
2017-06-13Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp)hayati ayguen1-1/+10
* added debug output when activating Signed-off-by: hayati ayguen <h_ayguen@web.de> * fixed options argument Signed-off-by: Fabian P. Schmidt <kerel-fs@gmx.de> Signed-off-by: Steve Markgraf <steve@steve-m.de>
2015-06-09tools: allow built-in functions for newer versions of MSVCHoernchen1-0/+2
2014-02-04remove unused variables, type fixesSteve Markgraf1-4/+3
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23rtl_adsb: fix threadingKyle Keen1-10/+16
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23utils: convenience functionsKyle Keen1-45/+17
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-10-25tools: play nice with mingw/cygwinHoernchen1-1/+1
2013-10-24rtl_adsb: remove floats for more speedHoward Su1-6/+6
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-09-13rtl_adsb: Fix invalid memory accessWill Glynn1-2/+3
single_manchester() considers both i and i+1, but the loop only tests that i is in bounds. This causes undefined behavior, including but not limited to a SIGBUS-related crash on Mac OS X. (And also, we should not enter an infinite loop, caused by applying an patch I sent that didn't also change the while condition.) Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-31rtl_fm: osx does not like semaphoresKyle Keen1-8/+6
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-30rtl_adsb: 16 bit magnitudesKyle Keen1-43/+49
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-04rtl_adsb: improve sensitivity, stabilityKyle Keen1-1/+3
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-12-28rtl_adsb: windows fixHoernchen1-0/+1
2012-12-28rtl_adsb: performance tweaksKyle Keen1-21/+40
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-12-16rtl_adsb: sensitivity tweaksKyle Keen1-33/+60
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-12-10rtl_adsb: prototypeKyle Keen1-0/+463
Signed-off-by: Steve Markgraf <steve@steve-m.de>