[Asterisk-Dev] localtime threadunsafeness
alex at pilosoft.com
alex at pilosoft.com
Fri Mar 28 05:47:30 MST 2003
localtime() is thread-unsafe. you must use localtime_r, otherwise, you are
liable to get race conditions under heavy log volume.
fixes are trivial (replace tm=localtime( t ) with localtime_r(tm,t)
files that need to be fixed:
callerid.c
logger.c
pbx.c
say.c
cdr/cdr_csv.c
cdr/cdr_mysql.c
channels/chan_phone.c
channels/chan_mgcp.c
apps/app_voicemail.c
More information about the asterisk-dev
mailing list