mirror of
https://github.com/dankamongmen/notcurses
synced 2025-03-09 17:19:03 -04:00
throw a diagnostic on sigaltstack() failure #2828
This commit is contained in:
parent
a924cede7f
commit
c6b13e08a3
@ -165,7 +165,9 @@ fatal_handler(int signo, siginfo_t* siginfo, void* v){
|
||||
void setup_alt_sig_stack(void){
|
||||
pthread_mutex_lock(&lock);
|
||||
if(alt_signal_stack.ss_sp){
|
||||
sigaltstack(&alt_signal_stack, NULL);
|
||||
if(sigaltstack(&alt_signal_stack, NULL)){
|
||||
logerror("error installing alternate signal stack (%s)", strerror(errno));
|
||||
}
|
||||
}
|
||||
pthread_mutex_unlock(&lock);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user