From a833684d8e6028345fba391cdbcd7255b0ce1efc Mon Sep 17 00:00:00 2001 From: Frantisek Sumsal Date: Sat, 4 Nov 2023 12:28:49 +0100 Subject: [PATCH] udevadm: make sure we don't reset max children on each invocation Follow-up to e4080a6d97. --- src/udev/udevadm-control.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/udev/udevadm-control.c b/src/udev/udevadm-control.c index 90b9b39e22..2297a50570 100644 --- a/src/udev/udevadm-control.c +++ b/src/udev/udevadm-control.c @@ -219,7 +219,7 @@ int control_main(int argc, char *argv[], void *userdata) { return log_error_errno(r, "Failed to send request to update environment: %m"); } - if (arg_max_children) { + if (arg_max_children >= 0) { r = udev_ctrl_send_set_children_max(uctrl, arg_max_children); if (r < 0) return log_error_errno(r, "Failed to send request to set number of children: %m");