diff options
author | Andrew Kaster <akaster@serenityos.org> | 2022-07-04 10:04:00 -0600 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-07-06 14:24:23 +0200 |
commit | 136b779a6412903b738c76a01bbd71edbcf471f4 (patch) | |
tree | b590db25d1efbaa38ab38ba3d0f2ccf4db597117 /Userland/Services | |
parent | 30b626414d15f24a1ab487b61e33cdc2c793e891 (diff) | |
download | serenity-136b779a6412903b738c76a01bbd71edbcf471f4.zip |
RequestServer: Only attach SIGINFO signal handler if SIGINFO is defined
Diffstat (limited to 'Userland/Services')
-rw-r--r-- | Userland/Services/RequestServer/main.cpp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Services/RequestServer/main.cpp b/Userland/Services/RequestServer/main.cpp index 7586688917..30d83dee1a 100644 --- a/Userland/Services/RequestServer/main.cpp +++ b/Userland/Services/RequestServer/main.cpp @@ -24,7 +24,9 @@ ErrorOr<int> serenity_main(Main::Arguments) else TRY(Core::System::pledge("stdio inet accept unix rpath sendfd recvfd sigaction")); +#ifdef SIGINFO signal(SIGINFO, [](int) { RequestServer::ConnectionCache::dump_jobs(); }); +#endif if constexpr (TLS_SSL_KEYLOG_DEBUG) TRY(Core::System::pledge("stdio inet accept unix cpath wpath rpath sendfd recvfd")); |