mirror of https://github.com/BOINC/boinc.git
Fix for MacOS signal handler problems
This commit is contained in:
parent
05b6bfdfa1
commit
0bd2b91a60
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue