From 136b779a6412903b738c76a01bbd71edbcf471f4 Mon Sep 17 00:00:00 2001 From: Andrew Kaster Date: Mon, 4 Jul 2022 10:04:00 -0600 Subject: [PATCH] RequestServer: Only attach SIGINFO signal handler if SIGINFO is defined --- Userland/Services/RequestServer/main.cpp | 2 ++ 1 file changed, 2 insertions(+) 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 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"));