From 71a5105be32cae6c1f7908f72d3562c3e9cc9ede Mon Sep 17 00:00:00 2001 From: Laurent Bercot Date: Sat, 10 Sep 2016 14:59:21 +0000 Subject: Add guard-rail to s6-ipcserver to avoid it choking on a dgram socket --- src/conn-tools/s6-ipcserver.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src') diff --git a/src/conn-tools/s6-ipcserver.c b/src/conn-tools/s6-ipcserver.c index ccc76f6..96f10c7 100644 --- a/src/conn-tools/s6-ipcserver.c +++ b/src/conn-tools/s6-ipcserver.c @@ -65,6 +65,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) ; -- cgit v1.2.3