Re: Mixing threaded and non-threaded - Mailing list pgsql-hackers

From Bruce Momjian
Subject Re: Mixing threaded and non-threaded
Date
Msg-id 200401301725.i0UHP5i12779@candle.pha.pa.us
Whole thread Raw
In response to Re: Mixing threaded and non-threaded  (Scott Lamb <slamb@slamb.org>)
Responses Re: Mixing threaded and non-threaded  (Scott Lamb <slamb@slamb.org>)
List pgsql-hackers
Scott Lamb wrote:
> Speaking of async signal-safe functions, pthread_getspecific() isn't 
> specified to be (and thus PQinSend() and thus 
> sigpipe_handler_ignore_send()). It's probably okay, but libpq is 
> technically using undefined behavior according to SUSv3.

Yikes.  I never suspected pthread_getspecific() would not be signal safe
because it is already thread safe, but I see the point that it is called
in the current thread.  Any ideas how to fix this?

--  Bruce Momjian                        |  http://candle.pha.pa.us pgman@candle.pha.pa.us               |  (610)
359-1001+  If your life is a hard drive,     |  13 Roberts Road +  Christ can be your backup.        |  Newtown Square,
Pennsylvania19073
 


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: [pgsql-hackers-win32] Sync vs. fsync during checkpoint
Next
From: Bruce Momjian
Date:
Subject: Re: [pgsql-hackers-win32] Sync vs. fsync during checkpoint