Skip to Content.
Sympa Menu

freetds - Re: Patches

freetds AT lists.ibiblio.org

Subject: FreeTDS Development Group

List archive

Chronological Thread  
  • From: ZIGLIO Frediano <Frediano.Ziglio AT vodafoneomnitel.it>
  • To: "'TDS Development Group'" <freetds AT franklin.metalab.unc.edu>
  • Subject: Re: Patches
  • Date: Thu, 27 Jun 2002 10:45:06 +0200


>
> On 26 Jun 2002, Stan Liberman wrote:
>
> >
> > 574400 - Several patches for thread safety in tds. Our apps
> consistently
> > core dumped at attempt to login from several threads.
> Pretty much just
> > replaced non thread-safe functions with their safe equivalents.
>
> This gets into a sticky situation, older unices will not have the _r
> versions of the calls, so we should be checking via autoconf
> for their
> existence and using only then. So, something like
>
> #if HAVE_LOCALTIME_R
> tm = localtime_r(&t, &res);
> #else
> tm = localtime(&t);
> #endif
>
> and in configure.in adding:
>
> AC_CHECK_FUNCS(localtime_r)
>
> Otherwise, I'm all for this one going in.
>
You should apply patch #569044 too for thread safety.

freddy77

=================================
"STRICTLY PERSONAL AND CONFIDENTIAL

This message may contain confidential and proprietary material for the sole
use of the intended recipient. Any review or distribution by others is
strictly prohibited. If you are not the intended recipient please contact
the sender and delete all copies.
The contents of this message that do not relate to the official business of
our company shall be understood as neither given nor endorsed by it."

=================================




Archive powered by MHonArc 2.6.24.

Top of Page