[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Realloc is blocking execution



On Fri, 16 Oct 2009, Mats Erik Andersson wrote:
> 4. The main process WM receives SIGHUP, and enters a signal handler.
>    The signal handler uses two calls: free_menuitems(), get_menuitems().

Since when are you allowed to malloc, let alone realoc, from inside a signal
handler?

http://www.gnu.org/s/libc/manual/html_node/Nonreentrancy.html#Nonreentrancy

-- 
  "One disk to rule them all, One disk to find them. One disk to bring
  them all and in the darkness grind them. In the Land of Redmond
  where the shadows lie." -- The Silicon Valley Tarot
  Henrique Holschuh


Reply to: