diff options
author | Laurent Bercot <ska-skaware@skarnet.org> | 2016-09-10 15:01:14 +0000 |
---|---|---|
committer | Laurent Bercot <ska-skaware@skarnet.org> | 2016-09-10 15:01:14 +0000 |
commit | c4fe75fd62ad8b53e98472874c07182f74832ecb (patch) | |
tree | 97edcae6128b12d3053a25b5b858bbfdde7bc757 /src/conn-tools/s6-tcpserver4.c | |
parent | 5d417a186a73712b22faae4d1b9654c095342aaa (diff) | |
download | s6-networking-c4fe75fd62ad8b53e98472874c07182f74832ecb.tar.xz |
Add options to s6-tcpserver4-socketbinder and s6-tcpserver6-socketbinder to create UDP sockets; also to not listen(). (Suggested by Daniel Kahn Gillmor.)
Diffstat (limited to 'src/conn-tools/s6-tcpserver4.c')
-rw-r--r-- | src/conn-tools/s6-tcpserver4.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/conn-tools/s6-tcpserver4.c b/src/conn-tools/s6-tcpserver4.c index 6a85110..7baa66c 100644 --- a/src/conn-tools/s6-tcpserver4.c +++ b/src/conn-tools/s6-tcpserver4.c @@ -61,6 +61,7 @@ int main (int argc, char const *const *argv, char const *const *envp) if (!flagreuse) newargv[m++] = "-D" ; if (backlog != (unsigned int)-1) { + if (!backlog) backlog = 1 ; newargv[m++] = "-b" ; newargv[m++] = fmt + pos ; pos += uint_fmt(fmt + pos, backlog) ; |