Skip to content

Commit

Permalink
Exit instead of abort
Browse files Browse the repository at this point in the history
  • Loading branch information
AdamSimpson committed Feb 18, 2018
1 parent 7e232d5 commit 0d4ea28
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Client/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ int main(int argc, char *argv[]) {
std::cout.setf(std::ios::unitbuf);

// Catch ctrl-c and restore cursor
std::signal(SIGINT, [](int signal){ std::cout << "Aborting\n"; show_cursor(); std::abort(); });
std::signal(SIGINT, [](int signal){ std::cout << "\nUser requested exit\n"; show_cursor(); std::exit(EXIT_FAILURE); });

hide_cursor();

Expand Down

0 comments on commit 0d4ea28

Please sign in to comment.