On Tue, May 05, 2015 at 09:17:06PM +0530, dE wrote:

> if multiple daemons listen on the single port, how is the concurrency
> problem handled?

TL;DR: Correctly.  

In detail: Multiple processes indeed share the acceptor socket,
but only one (otherwise) idle process at a time is monitoring it
for new connections.  The rest (of the idle processes) are blocked
on a file lock, which is released by the lock holder once it accepts
a connection to process (and is no longer idle).

-- 
        Viktor.

Reply via email to