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

std::signal(SIGINT, handle_signal); std::signal(SIGINT, handle_signal);
std::signal(SIGTERM, handle_signal); std::signal(SIGTERM, handle_signal);


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

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

Loading…
Cancel
Save