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

Re: is malloc() reentrant ?



In article <cistron.19990902114349.A6499@pc203a.wi.leidenuniv.nl>,
J.H.M. Dassen \(Ray\) <jdassen@wi.LeidenUniv.nl> wrote:
>On Wed, Sep 01, 1999 at 17:41:01 -0400, Seong Hoon Kim wrote:
>> is malloc() reentrant ?
>
>I strongly suspect it is. Read "info libc 'Feature Test Macros'" on how to
>compile for threadsafety.

"Thread safe" and "using from a signal handler safe" are 2 very
different things ...

A thread safe malloc called from a signal handler could easily deadlock,
unless it is really reentrant (no mutexes)

Mike.
-- 
... somehow I have a feeling the hurting hasn't even begun yet
	-- Bill, "The Terrible Thunderlizards"


Reply to: