]> git.tuebingen.mpg.de Git - paraslash.git/commit
create_local_socket(): Avoid code duplication.
authorAndre Noll <maan@tuebingen.mpg.de>
Sun, 11 Jan 2015 23:40:22 +0000 (00:40 +0100)
committerAndre Noll <maan@tuebingen.mpg.de>
Sat, 14 Feb 2015 10:45:26 +0000 (11:45 +0100)
commit00e95557839f3fef5fa06702f3864e8376d2a29b
treecbef5d5c2977fe7a3c4ebc89e13464925315befd
parent6b291ea777418071bb21c20aa7804447d95422bc
create_local_socket(): Avoid code duplication.

The two users of create_local_socket(), afs.c and audiod.c, both
call mark_fd_nonblocking() and listen(2) on the returned socket file
descriptor. This patch moves the code for this additional work to
create_local_socket(), simplifying the callers.
afs.c
audiod.c
net.c