summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorFrantisek Sumsal <frantisek@sumsal.cz>2023-11-04 12:28:49 +0100
committerFrantisek Sumsal <frantisek@sumsal.cz>2023-11-04 13:58:18 +0100
commita833684d8e6028345fba391cdbcd7255b0ce1efc (patch)
tree59edd13f8a7dfa605d97d1873107eeaf502b75ff
parenttree-wide: fix typo (diff)
downloadsystemd-a833684d8e6028345fba391cdbcd7255b0ce1efc.tar.xz
systemd-a833684d8e6028345fba391cdbcd7255b0ce1efc.zip
udevadm: make sure we don't reset max children on each invocation
Follow-up to e4080a6d97.
-rw-r--r--src/udev/udevadm-control.c2
1 files changed, 1 insertions, 1 deletions
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");