bug-gnulib
[Top][All Lists]
Advanced

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

[PATCH]: gl_recursive_lock_init issue with pthread backend


From: Yoann Vandoorselaere
Subject: [PATCH]: gl_recursive_lock_init issue with pthread backend
Date: Fri, 30 Nov 2007 12:27:30 +0100

Hi,

The gl_recursive_lock_init() macro used for the pthread backend never
set the mutex attribute to be recursive. The end result is that a
'standard' mutex is created, which will deadlock on recursive use. A
patch is attached that fixes this issue.

Additionally, lock.h make use of the abort() function, which can be a
problem if the application / library handle pthread error in a specific
way. Is that done on purpose, or are you interested in a patch?

Regards,

-- 
Yoann Vandoorselaere | Responsable R&D / CTO | PreludeIDS Technologies
Tel: +33 (0)8 70 70 21 58                  Fax: +33(0)4 78 42 21 58
http://www.prelude-ids.com

Attachment: gnulib-pthread-recursive-mutex.diff
Description: Text Data


reply via email to

[Prev in Thread] Current Thread [Next in Thread]