freetds AT lists.ibiblio.org
Subject: FreeTDS Development Group
List archive
- 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."
=================================
-
asprintf vasprintf,
ZIGLIO Frediano, 08/27/2002
- <Possible follow-up(s)>
- RE: asprintf vasprintf, Varley, David(CBorn at Alcoa), 08/27/2002
- RE: asprintf vasprintf, Steve Langasek, 08/27/2002
- RE: asprintf vasprintf, ZIGLIO Frediano, 08/27/2002
- RE: asprintf vasprintf, Lowden, James K, 08/27/2002
- RE: asprintf vasprintf, Castellano, Nicholas, 08/27/2002
- RE: asprintf vasprintf, Varley, David(CBorn at Alcoa), 08/27/2002
- RE: asprintf vasprintf, ZIGLIO Frediano, 08/28/2002
- RE: asprintf vasprintf, Castellano, Nicholas, 08/28/2002
- RE: asprintf vasprintf, Castellano, Nicholas, 08/29/2002
- RE: asprintf vasprintf, ZIGLIO Frediano, 08/29/2002
- RE: asprintf vasprintf, Castellano, Nicholas, 08/29/2002
- RE: asprintf vasprintf, Lowden, James K, 08/29/2002
- RE: asprintf vasprintf, Castellano, Nicholas, 08/29/2002
- RE: asprintf vasprintf, ZIGLIO Frediano, 08/29/2002
- RE: asprintf vasprintf, Bernd Jendrissek, 08/29/2002
- RE: asprintf vasprintf, Brian Bruns, 08/29/2002
- RE: asprintf vasprintf, Castellano, Nicholas, 08/29/2002
- RE: asprintf vasprintf, Lowden, James K, 08/29/2002
- RE: asprintf vasprintf, Castellano, Nicholas, 08/29/2002
- RE: asprintf vasprintf, Brian Bruns, 08/29/2002
Archive powered by MHonArc 2.6.24.