Yuan Qin wrote: > The ast_log() will lock a mutex if appropriate, but the mutex may be in > locked state already. > Maybe we should use pthread_atfork() instead of fork() or never call > some functions that hold mutex > before execv() in child process.
pthread_atfork() does not fork, it does something entirely different. Read the man page before suggesting we use it :-) However, you have raised a very valid point... we cannot use pthread-related functions for synchronization after forking, because we are not running in the same process any longer. I will have someone look into this, thanks for raising the issue! _______________________________________________ --Bandwidth and Colocation provided by Easynews.com -- asterisk-dev mailing list To UNSUBSCRIBE or update options visit: http://lists.digium.com/mailman/listinfo/asterisk-dev
