mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-31 14:01:18 +08:00
* sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
as backlog. * sunrpc/svc_unix.c (svcunix_create): Likewise.
This commit is contained in:
parent
537e7234f7
commit
a3a449c17b
@ -1,5 +1,9 @@
|
||||
2005-01-11 Thorsten Kukuk <kukuk@suse.de>
|
||||
|
||||
* sunrpc/svc_tcp.c (svctcp_create): Call listen with SOMAXCONN
|
||||
as backlog.
|
||||
* sunrpc/svc_unix.c (svcunix_create): Likewise.
|
||||
|
||||
* grp/putgrent.c (putgrent): Don't write 0 as group
|
||||
ID if groupname starts with + or -.
|
||||
* pwd/putpwent.c (putpwent): Don't write 0 as user or
|
||||
|
@ -165,7 +165,7 @@ svctcp_create (int sock, u_int sendsize, u_int recvsize)
|
||||
(void) __bind (sock, (struct sockaddr *) &addr, len);
|
||||
}
|
||||
if ((__getsockname (sock, (struct sockaddr *) &addr, &len) != 0) ||
|
||||
(__listen (sock, 2) != 0))
|
||||
(__listen (sock, SOMAXCONN) != 0))
|
||||
{
|
||||
perror (_("svc_tcp.c - cannot getsockname or listen"));
|
||||
if (madesock)
|
||||
|
@ -161,7 +161,7 @@ svcunix_create (int sock, u_int sendsize, u_int recvsize, char *path)
|
||||
__bind (sock, (struct sockaddr *) &addr, len);
|
||||
|
||||
if (__getsockname (sock, (struct sockaddr *) &addr, &len) != 0
|
||||
|| __listen (sock, 2) != 0)
|
||||
|| __listen (sock, SOMAXCONN) != 0)
|
||||
{
|
||||
perror (_("svc_unix.c - cannot getsockname or listen"));
|
||||
if (madesock)
|
||||
|
Loading…
x
Reference in New Issue
Block a user