[Date Prev][Date Next] [Chronological] [Thread] [Top]

Re: (ITS#5248) non-atomic signal variables



h.b.furuseth@usit.uio.no wrote:
> Fixed the easy cases in HEAD.
> WAKE_LISTENER under --without-threads remains.
> 
As I recall, the only reason we needed the waking counter here was to make 
sure we never filled the pipe buffer, which would cause a single-threaded 
server to deadlock. We can simply set the pipe to nonblocking instead, and 
eliminate the counter.

The other point was that if there was already a pending wake event, there was 
no reason to write another one.
-- 
   -- Howard Chu
   Chief Architect, Symas Corp.  http://www.symas.com
   Director, Highland Sun        http://highlandsun.com/hyc/
   Chief Architect, OpenLDAP     http://www.openldap.org/project/