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


-- 
To UNSUBSCRIBE, email to debian-mentors-requ...@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmas...@lists.debian.org

Reply via email to