Skip to Content.
Sympa Menu

freetds - RE: asprintf vasprintf

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: asprintf vasprintf
  • Date: Thu, 29 Aug 2002 16:05:17 +0200


>
> There just doesn't seem to be any way to safely change the
> signal handler on
> the fly in a library function like this, without potentially causing
> undesired behavior in another thread. In particular, all
> pthread calls are
> off-limits in signal handlers, which makes it virtually
> impossible to do
> anything about this.
>
> I've decided to take another approach and provide a
> completely different
> implementation of vasprintf() that will be used when thread safety is
> enabled. Stay tuned for another patch later today.
>

I think we should use Patrick Powell implementation of snprintf/vsnprintf.
I tought about using pthread keys and other pthread stuff but other problem
raise (portability, complexity).

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