if (action.sa_handler != NULL) {
action.sa_handler(sig);
} else {
- signal(sig, SIG_DFL);
- raise(sig);
+ signal(sig, SIG_DFL);
+ raise(sig);
}
} else {
if (action.sa_sigaction != NULL) {
action.sa_sigaction(sig, info, context);
} else {
- signal(sig, SIG_DFL);
- raise(sig);
+ signal(sig, SIG_DFL);
+ raise(sig);
}
}
}
// we can't allow the user to block that signal.
for (int i = 0 ; i < _NSIG; ++i) {
if (user_sigactions[i].IsClaimed() && sigismember(&tmpset, i)) {
- sigdelset(&tmpset, i);
+ sigdelset(&tmpset, i);
}
}
}
if (linked_sigaction_sym == nullptr) {
linked_sigaction_sym = dlsym(RTLD_DEFAULT, "sigaction");
if (linked_sigaction_sym == nullptr ||
- linked_sigaction_sym == reinterpret_cast<void*>(sigaction)) {
- linked_sigaction_sym = nullptr;
+ linked_sigaction_sym == reinterpret_cast<void*>(sigaction)) {
+ linked_sigaction_sym = nullptr;
}
}
linked_sigprocmask_sym = dlsym(RTLD_DEFAULT, "sigprocmask");
if (linked_sigprocmask_sym == nullptr ||
linked_sigprocmask_sym == reinterpret_cast<void*>(sigprocmask)) {
- linked_sigprocmask_sym = nullptr;
+ linked_sigprocmask_sym = nullptr;
}
}
initialized = true;