Posted: Fri Mar 28, 2003 12:47 pm Post subject: [Asterisk-Dev] localtime threadunsafeness
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
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
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum