8225178: [Solaris] os::signal() should call sigaction() with SA_SIGINFO
Reviewed-by: dcubed, dholmes
This commit is contained in:
parent
43f89eb1fd
commit
1b21a47c71
@ -2027,6 +2027,7 @@ void* os::signal(int signal_number, void* handler) {
|
|||||||
struct sigaction sigAct, oldSigAct;
|
struct sigaction sigAct, oldSigAct;
|
||||||
sigfillset(&(sigAct.sa_mask));
|
sigfillset(&(sigAct.sa_mask));
|
||||||
sigAct.sa_flags = SA_RESTART & ~SA_RESETHAND;
|
sigAct.sa_flags = SA_RESTART & ~SA_RESETHAND;
|
||||||
|
sigAct.sa_flags |= SA_SIGINFO;
|
||||||
sigAct.sa_handler = CAST_TO_FN_PTR(sa_handler_t, handler);
|
sigAct.sa_handler = CAST_TO_FN_PTR(sa_handler_t, handler);
|
||||||
|
|
||||||
if (sigaction(signal_number, &sigAct, &oldSigAct)) {
|
if (sigaction(signal_number, &sigAct, &oldSigAct)) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user