[Asterisk-Dev] localtime threadunsafeness

Mark Spencer markster at digium.com
Sun Mar 30 13:35:10 MST 2003


Anybody want to give me a patch?

Mark

On Fri, 28 Mar 2003 alex at pilosoft.com wrote:

> 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
>
>
> _______________________________________________
> Asterisk-Dev mailing list
> Asterisk-Dev at lists.digium.com
> http://lists.digium.com/mailman/listinfo/asterisk-dev
>




More information about the asterisk-dev mailing list