From: Christos Trochalakis Date: Wed, 1 Jul 2015 11:39:53 +0000 (+0300) Subject: socket: Set SO_REUSEPORT before bind() X-Git-Tag: v226.4~1^2~238 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=commitdiff_plain;h=2054442fa4eaef0d904bcbbe1b98f57386ceb87d;hp=2054442fa4eaef0d904bcbbe1b98f57386ceb87d socket: Set SO_REUSEPORT before bind() bind() fails if it is called before setting SO_REUSEPORT and another process is already binded to the same addess. A new reuse_port option has been introduced to socket_address_listen() to set the option as part of socket initialization. ---