sd-device-monitor: unconditionally increase buffer size by sd_device_monitor_new()

As suggested at https://github.com/systemd/systemd/pull/29872#discussion_r1382932633:
> socket memory is these days accounted to the process that owns a socket,
> hence we shouldn't be too concerned that this might waste memory.
This commit is contained in:
Yu Watanabe
2023-11-06 20:39:51 +09:00
parent 7dafeb6d6b
commit eba449fa81
7 changed files with 9 additions and 24 deletions
-5
View File
@@ -1028,11 +1028,6 @@ static void device_enumerate(Manager *m) {
goto fail;
}
/* This will fail if we are unprivileged, but that
* should not matter much, as user instances won't run
* during boot. */
(void) sd_device_monitor_set_receive_buffer_size(m->device_monitor, 128*1024*1024);
r = sd_device_monitor_filter_add_match_tag(m->device_monitor, "systemd");
if (r < 0) {
log_error_errno(r, "Failed to add udev tag match: %m");