Make ss_size something reasonable (not 0) so sigaltstack does not fail.

Pull me up plz!
This commit is contained in:
christos 1999-04-29 16:09:12 +00:00
parent 8fb6c6124b
commit a38ee86714
1 changed files with 2 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: kern_sig_43.c,v 1.10 1998/09/14 21:03:59 pk Exp $ */
/* $NetBSD: kern_sig_43.c,v 1.11 1999/04/29 16:09:12 christos Exp $ */
/*-
* Copyright (c) 1998 The NetBSD Foundation, Inc.
@ -119,7 +119,7 @@ compat_43_sigstack_to_sigaltstack(ss, sa)
struct sigaltstack *sa;
{
sa->ss_sp = ss->ss_sp;
sa->ss_size = 0; /* XXX? */
sa->ss_size = SIGSTKSZ; /* Use the recommended size */
sa->ss_flags = 0;
if (ss->ss_onstack)
sa->ss_flags |= SS_ONSTACK;