Browse Source

Handle SIGQUIT

default_compile_flags
vector-of-bool 3 years ago
parent
commit
2c7478e408
1 changed files with 5 additions and 0 deletions
  1. +5
    -0
      src/dds/util/signal.cpp

+ 5
- 0
src/dds/util/signal.cpp View File

@@ -18,6 +18,11 @@ void dds::install_signal_handlers() noexcept {
std::signal(SIGINT, handle_signal);
std::signal(SIGTERM, handle_signal);

#ifdef SIGQUIT
// Some systems issue SIGQUIT :shrug:
std::signal(SIGQUIT, handle_signal);
#endif

#ifdef SIGPIPE
// XXX: neo-io doesn't behave nicely when EOF is hit on sockets. This Isn't
// easily fixed portably without simply blocking SIGPIPE globally.

Loading…
Cancel
Save