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

Implement a Ctrl-C handler and modify the server to exit cleanly. #21

Merged
merged 3 commits into from
Aug 16, 2020

Conversation

paladine
Copy link
Collaborator

Has the added benefit that logging off with 'x' actually disconnects
the Telnet connection.

One ctrl-c will trigger shutdown and hopefully stop the server. A second
ctrl-c will forcibly kill the server if something doesn't shut down
cleanly.

Calls the finrou routine on all modules. Session logoffs also call
the huprou routine, though we might want to see if it's more natural
to call stsrou instead.

Has the added benefit that logging off with 'x' actually disconnects
the Telnet connection.

One ctrl-c will trigger shutdown and hopefully stop the server. A second
ctrl-c will forcibly kill the server if something doesn't shut down
cleanly.

Calls the `finrou` routine on all modules. Session logoffs also call
the `huprou` routine, though we might want to see if it's more natural
to call `stsrou` instead.
…n 0 milliseconds for each take request, spamming heartbeats and wasting CPU.
@paladine paladine requested a review from enusbaum August 16, 2020 19:45
MBBSEmu/HostProcess/MbbsHost.cs Show resolved Hide resolved
MBBSEmu/Program.cs Show resolved Hide resolved
MBBSEmu/Program.cs Show resolved Hide resolved
MBBSEmu/Program.cs Show resolved Hide resolved
@enusbaum enusbaum merged commit d28ca1a into master Aug 16, 2020
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.

2 participants