1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-11 05:17:44 +03:00

udevd: remove huge socket buffer on the control socket

This commit is contained in:
Kay Sievers 2006-08-15 00:00:16 +02:00
parent be31371fbb
commit 469aa1df95

View File

@ -812,7 +812,6 @@ static void reap_sigchilds(void)
static int init_udevd_socket(void)
{
struct sockaddr_un saddr;
const int buffersize = 16 * 1024 * 1024;
socklen_t addrlen;
const int feature_on = 1;
int retval;
@ -829,9 +828,6 @@ static int init_udevd_socket(void)
return -1;
}
/* set receive buffersize */
setsockopt(udevd_sock, SOL_SOCKET, SO_RCVBUFFORCE, &buffersize, sizeof(buffersize));
/* the bind takes care of ensuring only one copy running */
retval = bind(udevd_sock, (struct sockaddr *) &saddr, addrlen);
if (retval < 0) {