diff --git a/source/main.cpp b/source/main.cpp index 8d808048..9080d9c7 100644 --- a/source/main.cpp +++ b/source/main.cpp @@ -348,6 +348,7 @@ int main(int argc, char *argv[]) int received_signal; sigaddset(&sigset, SIGINT); sigaddset(&sigset, SIGHUP); + sigaddset(&sigset, SIGTERM); sigprocmask(SIG_BLOCK, &sigset, nullptr); auto listener = std::make_shared();