mirror of
https://github.com/rakshasa/rtorrent.git
synced 2026-08-10 12:12:31 +00:00
* Using sigemptyset.
git-svn-id: svn://rakshasa.no/libtorrent/trunk/rtorrent@1250 e378c898-3ddf-0310-93e7-cc216c733640
This commit is contained in:
@@ -80,9 +80,10 @@ SignalHandler::set_sigaction_handler(unsigned int signum, handler_slot slot) {
|
||||
|
||||
struct sigaction sa;
|
||||
sa.sa_sigaction = slot;
|
||||
sa.sa_mask = (sigset_t)0;
|
||||
sa.sa_flags = SA_SIGINFO;
|
||||
|
||||
sigemptyset(&sa.sa_mask);
|
||||
|
||||
if (sigaction(signum, &sa, NULL) == -1)
|
||||
throw std::logic_error("Could not set sigaction: " + std::string(rak::error_number::current().c_str()));
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user