Skip to content

Proper quitting #52

Description

@MeasureOneCodeTwice

SOTI's interface says 'q' or Ctrl-C to quit.
Right now, q does nothing and Ctrl-C crashes the app.

Write a signal handler and a shutdown routine to shutdown gracefully on Ctrl-C
Call the shutdown routine when the user enters q as a command.

Steps:

  1. Figure what resources need to be released on exit
  2. Write routine to release them and close the app
  3. Get the routine to run on Ctrl-C and 'q' command.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workingenhancementNew feature or request

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions