Skip to content

Commit

Permalink
only use _SC_SIGSTKSZ when it's defined
Browse files Browse the repository at this point in the history
  • Loading branch information
dankamongmen committed Jan 2, 2025
1 parent 4adde8f commit 3a43881
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/lib/unixsig.c
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,11 @@ int setup_signals(void* vnc, bool no_quit_sigs, bool no_winch_sigs,
// to export ASAN_OPTIONS=use_sigaltstack=0, or just not fuck with the alternate
// signal stack when built with ASAN.
#ifndef USE_ASAN
#ifdef _SC_SIGSTKSZ
long minstksz = sysconf(_SC_SIGSTKSZ);
#else
long minsktkz = 0;
#endif
if(minstksz <= 0){
minstksz = SIGSTKSZ * 4;
}
Expand Down

0 comments on commit 3a43881

Please sign in to comment.