fix the sigaltstack hack by lowering the stack size to the original value

if the request was for less than MINSIGSTKSZ (in which case we "round up").
discussed with: marcel
This commit is contained in:
gallatin 2000-10-31 03:10:41 +00:00
parent 54fe531ed1
commit 20715dd02c

View File

@ -687,6 +687,8 @@ linux_sigaltstack(p, uap)
lss.ss_flags = bsd_to_linux_sigaltstack(oss->ss_flags);
error = copyout(&lss, uap->uoss, sizeof(linux_stack_t));
}
if (!error && (ss != NULL) && (lss.ss_size < ss->ss_size))
p->p_sigstk.ss_size = lss.ss_size;
return (error);
}