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:
parent
be31371fbb
commit
469aa1df95
4
udevd.c
4
udevd.c
@ -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) {
|
||||
|
Loading…
Reference in New Issue
Block a user