New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Version 0.2.5 crashs with SEGV if invoked by systemd #11
Comments
I propose to add a command-line argument allowing ogn-rf and ogn-decode to run non-interactive, perhaps even as a proper daemon (--daemon/-d: Runs process in the background). |
Possible fixDetect whether stdin is a terminal or a pipe and only try to read from stdin if it's a terminal. |
Fixes glidernet#11: Version 0.2.5 crashs with SEGV if invoked by systemd.
Fixes glidernet#11: Version 0.2.5 crashs with SEGV if invoked by systemd.
This is a workaround for glidernet#11: Version 0.2.5 crashs with SEGV if invoked by systemd, since ogn-decode exits when it gets an EOF via stdin.
This is a workaround for glidernet#11: Version 0.2.5 crashs with SEGV if invoked by systemd, since ogn-decode exits when it gets an EOF via stdin.
Also affects version 0.2.6. |
This works for me. I use tty20 for ogn-rf and tty21 for ogn-decode.
|
Perhaps late in the game, from docker I can run it with: setsid sh -c 'exec ./ogn-rf Station.conf <> /dev/tty20' |
ogn-rf
andogn-decode
crashes with SEGV or exits when stdin is redirected from /dev/null.This redirection is done by default by systemd for simple services.
Steps to repoduce
Download and install rtlsdr-ogn-0.2.5.ARM, then execute it with
Alternatively, there is an ansible role to reproduces the issue with systemd involved: ogn-node
Initial log (systemd involved): http://paste.debian.net/hidden/b0f487a3/
Minimal failing scenario:
The text was updated successfully, but these errors were encountered: