Re: Realloc is blocking execution
On Fri, Oct 16, 2009 at 12:02:26PM +0200, Bernhard R. Link wrote:
> * Mats Erik Andersson <firstname.lastname@example.org> [091016 11:55]:
> > 4. The main process WM receives SIGHUP, and enters a signal handler.
> > The signal handler uses two calls: free_menuitems(), get_menuitems().
> If those calls call malloc or free or anything else this might be the
> problem. Memory allocation functions are not reentrant and due to
> threading support are easily blocking when used this way.
Sadly, the manual page for these functions under linux doesn't seem to
say anything about that, contrary to other unices man pages. Maybe this
should be filed as a wishlist bug.