mirror of
https://github.com/SerenityOS/serenity.git
synced 2025-01-24 02:12:09 -05:00
RequestServer: Only attach SIGINFO signal handler if SIGINFO is defined
This commit is contained in:
parent
30b626414d
commit
136b779a64
1 changed files with 2 additions and 0 deletions
|
@ -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"));
|
||||
|
|
Loading…
Add table
Reference in a new issue