]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
uuidd: increase connection backlog size to SOMAXCONN
authorPetr Uzel <petr.uzel@suse.cz>
Thu, 3 Feb 2011 14:04:57 +0000 (15:04 +0100)
committerKarel Zak <kzak@redhat.com>
Tue, 8 Feb 2011 14:21:51 +0000 (15:21 +0100)
Signed-off-by: Petr Uzel <petr.uzel@suse.cz>
misc-utils/uuidd.c

index 825a38ad8793dfdcbe0622de76c33a417e1a7cfb..1315a7eb84d0565f008cb393f008a2b5af6a5a4a 100644 (file)
@@ -281,7 +281,7 @@ static void server_loop(const char *socket_path, const char *pidfile_path,
        }
        (void) umask(save_umask);
 
-       if (listen(s, 5) < 0) {
+       if (listen(s, SOMAXCONN) < 0) {
                if (!quiet)
                        fprintf(stderr, _("Couldn't listen on unix "
                                          "socket %s: %s\n"), socket_path,