Skip to content
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

bbs.c: Ignore SIGHUP signal if daemonized. #47

Merged
merged 1 commit into from
Oct 17, 2024
Merged

bbs.c: Ignore SIGHUP signal if daemonized. #47

merged 1 commit into from
Oct 17, 2024

Conversation

InterLinked1
Copy link
Owner

When running as a daemon, the BBS receives a SIGHUP whenever a remote sysop console disconnects. Without handling the signal, this causes the BBS to get killed by the kernel. To avoid this, install a dummy signal handler when daemonized to ignore the signal and continue running.

Resolves: #46

@TurBoss
Copy link

TurBoss commented Oct 17, 2024

hello!

This patch fixes the exit issue.

Thank you!

When running as a daemon, the BBS receives a SIGHUP whenever a remote
sysop console disconnects. Without handling the signal, this causes
the BBS to get killed by the kernel. To avoid this, install a dummy
signal handler when daemonized to ignore the signal and continue
running.

Additionally, logger.c was using the wrong check to determine whether
to generate a log message for outputting to terminals, which resulted
in no log messages on consoles when the BBS was daemonized. Adjust
this logic so that console messages are generated when needed.

Resolves: #46
@InterLinked1 InterLinked1 merged commit 5952cfb into master Oct 17, 2024
14 checks passed
@InterLinked1 InterLinked1 deleted the sighup branch October 17, 2024 22:38
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

lbbs daemon mode exits/closes when server is empty
2 participants