RequestServer: Only attach SIGINFO signal handler if SIGINFO is defined

This commit is contained in:
Andrew Kaster 2022-07-04 10:04:00 -06:00 committed by Andreas Kling
commit 136b779a64
Notes: sideshowbarker 2024-07-17 09:40:21 +09:00

View file

@ -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"));