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
parent 30b626414d
commit 136b779a64

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