Calling malloc from a signal handler

Stephen Montgomery-Smith stephen at
Fri Sep 19 14:32:02 UTC 2008

I notice that if you use "malloc" from within a signal handler on 
FreeBSD-6.x, that you can potentially trigger a "recursive call" error.

But this seems to have changed in FreeBSD-7.x.

Is it now permissible to call "malloc" from within a signal handler in 

If so, should the man page of "sigaction(2)" be upgraded to say this?

Thanks, Stephen

More information about the freebsd-stable mailing list