mirror of
https://gitlab.freedesktop.org/plymouth/plymouth.git
synced 2026-05-09 02:28:19 +02:00
utils: use system default max for listen()
There's apparently a define that gives the right value to pass to listen. So this commit makes us use that instead of our arbitrary "32"
This commit is contained in:
parent
bc55aec23c
commit
573f8c44a0
1 changed files with 1 additions and 5 deletions
|
|
@ -59,10 +59,6 @@
|
|||
#define PLY_ERRNO_STACK_SIZE 256
|
||||
#endif
|
||||
|
||||
#ifndef PLY_SOCKET_CONNECTION_BACKLOG
|
||||
#define PLY_SOCKET_CONNECTION_BACKLOG 32
|
||||
#endif
|
||||
|
||||
#ifndef PLY_SUPER_SECRET_LAZY_UNMOUNT_FLAG
|
||||
#define PLY_SUPER_SECRET_LAZY_UNMOUNT_FLAG 2
|
||||
#endif
|
||||
|
|
@ -252,7 +248,7 @@ ply_listen_to_unix_socket (const char *path,
|
|||
|
||||
free (address);
|
||||
|
||||
if (listen (fd, PLY_SOCKET_CONNECTION_BACKLOG) < 0)
|
||||
if (listen (fd, SOMAXCONN) < 0)
|
||||
{
|
||||
ply_save_errno ();
|
||||
close (fd);
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue