Skip to content

Commit

Permalink
Do nothing on SIGINT
Browse files Browse the repository at this point in the history
  • Loading branch information
tfpf committed Nov 4, 2024
1 parent 96c1120 commit 2cbc1e3
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions custom-prompt/custom-prompt.cc
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
#include <csignal>
#include <algorithm>
#include <chrono>
#include <cstddef>
Expand Down Expand Up @@ -701,5 +702,6 @@ int main_internal(int const argc, char const* argv[])

int main(int const argc, char const* argv[])
{
std::signal(SIGINT, SIG_IGN);
return main_internal(argc, argv);
}

0 comments on commit 2cbc1e3

Please sign in to comment.