tech-userlevel archive

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

Re: radiusd: Error detected by libpthread: Invalid mutex.



On May 4,  2:16am, manu%netbsd.org@localhost (Emmanuel Dreyfus) wrote:
-- Subject: Re: radiusd: Error detected by libpthread: Invalid mutex.

| Christos Zoulas <christos%astron.com@localhost> wrote:
| 
| > It is implementation dependend; for portability pthread_mutex_init() should
| > be done in the child process and not cross a fork. Eg:
| 
| An important point: it seems current Linux implementation is perfectly
| fine with using mutexes that were not initialized, leading Linux
| developper to often forget the pthread_mutex_init() call. This is a bug
| I encountered a few times when porting glusterfs on NetBSD.

I agree, but how do you suggest that we improve the situation?

christos


Home | Main Index | Thread Index | Old Index