Don't interpret SIG_DFL and SIG_IGN as real handler address.

svn path=/trunk/; revision=17596
This commit is contained in:
Hartmut Birr 2005-08-30 16:24:55 +00:00
parent bb3b1de38c
commit 3e0e6887f8

View file

@ -61,7 +61,7 @@ __p_sig_fn_t signal(int sig, __p_sig_fn_t func)
}
// check with IsBadCodePtr
if ( func < (__p_sig_fn_t)4096 )
if ( func < (__p_sig_fn_t)4096 && func != SIG_DFL && func != SIG_IGN)
{
__set_errno(EINVAL);
return SIG_ERR;