Does the poll()ing a shared pipe bug also affects nginx?

Hello,

At the dovecot mailing list there has been a discussion about what
seems to be a bug where, in linux, systems poll()ing a shared pipe
triggers unnecessary context switches.

Does ningx also poll()s shared pipes?

The bug report (from dovecot author):
http://marc.info/?l=linux-kernel&m=129243588809986&w=2
(full patch here: http://hg.dovecot.org/dovecot-2.0/rev/b0ec48006d57)

And the answer from the linux kernel people:
https://lkml.org/lkml/2010/12/15/470

Regards,

M.

Hello!

On Fri, Dec 17, 2010 at 12:47:20PM +0000, Mark A. wrote:

And the answer from the linux kernel people:
LKML: Davide Libenzi: Re: poll()ing a shared pipe triggers unnecessary context switches

No, this particular problem shouldn’t affect nginx. It uses
socketpairs (not pipes), waits for read events (not write), and
they aren’t actually shared (though each worker has sockets to
other workers, each worker only waits on his own socket and
doesn’t touch sockets to other workers).

Maxim D.