Fix for MacOS signal handler problems

This commit is contained in:
Eric J Korpela 2013-09-27 17:57:17 -07:00
parent 05b6bfdfa1
commit 0bd2b91a60
1 changed files with 1 additions and 1 deletions

View File

@ -591,7 +591,7 @@ extern "C" void boinc_set_signal_handler(int sig, handler_t handler) {
struct sigaction temp;
sigaction(sig, NULL, &temp);
if (temp.sa_handler != SIG_IGN) {
temp.sa_handler = (sighandler_t)handler;
temp.sa_handler = (void (*)(int))handler;
// sigemptyset(&temp.sa_mask);
sigaction(sig, &temp, NULL);
}