From 9fb515c774aee932951ab6fdf79a9ed78d8b5552 Mon Sep 17 00:00:00 2001 From: "Thomas A." Date: Wed, 27 Mar 2024 21:14:43 -0700 Subject: [PATCH] Fix Simultaneously Launching Multiple Instances Of Darling Increase the backlog value from 1 to 16384. Fixes #1499 Co-Authored-By: tihmstar --- src/shellspawn/shellspawn.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/shellspawn/shellspawn.c b/src/shellspawn/shellspawn.c index 2f99825bc..1fbb3d0f1 100644 --- a/src/shellspawn/shellspawn.c +++ b/src/shellspawn/shellspawn.c @@ -85,7 +85,7 @@ void setupSocket(void) chmod(addr.sun_path, 0600); - if (listen(g_serverSocket, 1) == -1) + if (listen(g_serverSocket, 16384) == -1) { perror("Listening on unix socket"); exit(EXIT_FAILURE);