Re: Realloc is blocking execution
- To: Mats Erik Andersson <mats.andersson@gisladisker.se>
- Cc: debian-mentors@lists.debian.org
- Subject: Re: Realloc is blocking execution
- From: Henrique de Moraes Holschuh <hmh@debian.org>
- Date: Wed, 11 Nov 2009 17:35:15 -0200
- Message-id: <[🔎] 20091111193515.GA17090@khazad-dum.debian.net>
- In-reply-to: <20091016095523.GA6909@mea.homelinux.org>
- References: <20091013234039.GA24243@mea.homelinux.org> <878wfe47v4.fsf@frosties.localdomain> <Pine.LNX.4.64.0910141342430.23781@login01.caesar.elte.hu> <20091014125006.GA27900@mea.homelinux.org> <Pine.LNX.4.64.0910141750250.5611@login01.caesar.elte.hu> <20091016095523.GA6909@mea.homelinux.org>
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: