mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 02:17:34 +00: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
|
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