Skip to content

Commit

Permalink
throw a diagnostic on sigaltstack() failure #2828
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 2, 2025
1 parent a924ced commit c6b13e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/unixsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit c6b13e0

Please sign in to comment.