Commit Graph

19 Commits

Author SHA1 Message Date
hayati ayguen 91ef34d922 improve CLI usage docs: '-d' also accepts serial
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>
2024-02-16 17:27:28 +01:00
Tobias Girstmair 142325a93c Fix signal handler from getting stuck in an endless loop
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.
2022-12-17 21:18:49 +01:00
David Woodhouse 9047eef701 Fix inline functions to use 'static inline'
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-07-03 23:59:01 +02:00
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
hayati ayguen 18bf26989c Add option '-T' for activating bias-T in rtl_(adsb|fm|power|tcp)
* 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>
2017-06-13 01:20:32 +02:00
Hoernchen 5c376fc79c tools: allow built-in functions for newer versions of MSVC 2015-06-09 01:37:46 +02:00
Steve Markgraf 50743b1ccb remove unused variables, type fixes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-02-04 19:53:24 +01:00
Kyle Keen 8520c7c3d7 rtl_adsb: fix threading
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:23:06 +01:00
Kyle Keen 27c0929939 utils: convenience functions
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2014-01-23 23:21:23 +01:00
Hoernchen dbede4e3c0 tools: play nice with mingw/cygwin 2013-10-25 01:11:44 +02:00
Howard Su 53775a2ebf rtl_adsb: remove floats for more speed
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-10-24 23:33:51 +02:00
Will Glynn 4914b5d431 rtl_adsb: Fix invalid memory access
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-09-13 18:55:55 +02:00
Kyle Keen ea4dbd242d rtl_fm: osx does not like semaphores
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-31 20:42:42 +01:00
Kyle Keen c6a731a0dc rtl_adsb: 16 bit magnitudes
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-30 20:24:24 +01:00
Kyle Keen 5673a56223 rtl_adsb: improve sensitivity, stability
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2013-01-04 21:29:14 +01:00
Hoernchen d0534878f3 rtl_adsb: windows fix 2012-12-28 19:33:18 +01:00
Kyle Keen 196bb15169 rtl_adsb: performance tweaks
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-12-28 16:42:05 +01:00
Kyle Keen 8033414974 rtl_adsb: sensitivity tweaks
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-12-16 16:23:48 +01:00
Kyle Keen 562fd7e8e3 rtl_adsb: prototype
Signed-off-by: Steve Markgraf <steve@steve-m.de>
2012-12-10 22:37:25 +01:00