mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-05 23:59:49 +00:00
RequestServer: Only attach SIGINFO signal handler if SIGINFO is defined
This commit is contained in:
parent
30b626414d
commit
136b779a64
Notes:
sideshowbarker
2024-07-17 09:40:21 +09:00
Author: https://github.com/ADKaster
Commit: 136b779a64
Pull-request: https://github.com/SerenityOS/serenity/pull/14481
1 changed files with 2 additions and 0 deletions
|
@ -24,7 +24,9 @@ ErrorOr<int> serenity_main(Main::Arguments)
|
||||||
else
|
else
|
||||||
TRY(Core::System::pledge("stdio inet accept unix rpath sendfd recvfd sigaction"));
|
TRY(Core::System::pledge("stdio inet accept unix rpath sendfd recvfd sigaction"));
|
||||||
|
|
||||||
|
#ifdef SIGINFO
|
||||||
signal(SIGINFO, [](int) { RequestServer::ConnectionCache::dump_jobs(); });
|
signal(SIGINFO, [](int) { RequestServer::ConnectionCache::dump_jobs(); });
|
||||||
|
#endif
|
||||||
|
|
||||||
if constexpr (TLS_SSL_KEYLOG_DEBUG)
|
if constexpr (TLS_SSL_KEYLOG_DEBUG)
|
||||||
TRY(Core::System::pledge("stdio inet accept unix cpath wpath rpath sendfd recvfd"));
|
TRY(Core::System::pledge("stdio inet accept unix cpath wpath rpath sendfd recvfd"));
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue