mozilla-services/circus — pull request #222 by beevek (2012-07-13 18:13:07+00:00)
Title: only call listen() on SOCK_STREAM and SOCK_SEQPACKET sockets

circusd isn't working so well with SOCK_DGRAM sockets because listen() can't be called on them; it throws an error and circusd gives up while starting up. per `man 2 listen`: "The sockfd argument is a file descriptor that refers to a socket of type SOCK_STREAM or SOCK_SEQPACKET."

Here's a small little change that verifies the socket is one of SOCK_STREAM or SOCK_SEQPACKET before calling listen().