Skip to content
This repository has been archived by the owner on Sep 14, 2019. It is now read-only.

Commit

Permalink
Try to work around a libusb crash on exit after SIGINT.
Browse files Browse the repository at this point in the history
  • Loading branch information
mutability committed Jan 17, 2015
1 parent f0fe466 commit 971e575
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions debian/changelog
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ dump1090-mutability (1.10.3010.14mu-12) UNRELEASED; urgency=medium
* Fix sort-by-message-count in the webmap.
* Always sort missing values at the end of the table, even in a descending sort.
* Avoid a (rare) divide-by-zero crash in 2MHz --phase-enhance.
* Try to work around a libusb crash on exit after SIGINT.

-- Oliver Jowett <[email protected]> Fri, 16 Jan 2015 20:34:33 +0000

Expand Down
3 changes: 2 additions & 1 deletion dump1090.c
Original file line number Diff line number Diff line change
Expand Up @@ -1085,7 +1085,8 @@ int main(int argc, char **argv) {
// Nothing is touching the rtlsdr device now.

if (Modes.filename == NULL) {
rtlsdr_close(Modes.dev);
// This currently causes crashes within libusb for unknown reasons:
//rtlsdr_close(Modes.dev);
}

pthread_cond_destroy(&Modes.data_cond); // Thread cleanup - only after the reader thread is dead!
Expand Down

0 comments on commit 971e575

Please sign in to comment.