-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
bbs: Ignore SIGHUP signal and don't skip logging if daemonized. (#47)
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
- Loading branch information
1 parent
693f72b
commit 5952cfb
Showing
2 changed files
with
32 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters