소스 검색

RequestServer: Only attach SIGINFO signal handler if SIGINFO is defined

Andrew Kaster 3 년 전
부모
커밋
136b779a64
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  1. 2 0
      Userland/Services/RequestServer/main.cpp

+ 2 - 0
Userland/Services/RequestServer/main.cpp

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