Removed SignalBitfield and replaced it with callbacks.

This commit is contained in:
Jari Sundell
2026-06-01 15:40:22 +02:00
committed by GitHub
parent 50a609ade9
commit 14edd68653
5 changed files with 23 additions and 21 deletions
-10
View File
@@ -141,16 +141,6 @@ main(int argc, char** argv) {
SignalHandler::set_sigaction_handler(SIGBUS, &handle_sigbus);
// SIGUSR1 is used for interrupting polling, forcing the target
// thread to process new non-socket events.
//
// LibTorrent uses sockets for this purpose on Solaris and other
// platforms that do not properly pass signals to the target
// threads. Use '--enable-interrupt-socket' when configuring
// LibTorrent to enable this workaround.
if (torrent::system::Thread::should_handle_sigusr1())
SignalHandler::set_handler(SIGUSR1, []() {});
torrent::log_add_group_output(torrent::LOG_NOTICE, "important");
torrent::log_add_group_output(torrent::LOG_DHT_ERROR, "important");