Address D100645 comment

This commit is contained in:
Vitaly Buka 2021-04-16 11:28:41 -07:00
parent 82150606fb
commit b93629dd33
1 changed files with 2 additions and 3 deletions

View File

@ -180,10 +180,9 @@ void SetAlternateSignalStack() {
// TODO(glider): the mapped stack should have the MAP_STACK flag in the
// future. It is not required by man 2 sigaltstack now (they're using
// malloc()).
void *base = MmapOrDie(GetAltStackSize(), __func__);
altstack.ss_sp = (char*) base;
altstack.ss_flags = 0;
altstack.ss_size = GetAltStackSize();
altstack.ss_sp = (char *)MmapOrDie(altstack.ss_size, __func__);
altstack.ss_flags = 0;
CHECK_EQ(0, sigaltstack(&altstack, nullptr));
}