]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
udevadm: make sure we don't reset max children on each invocation
authorFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 4 Nov 2023 11:28:49 +0000 (12:28 +0100)
committerFrantisek Sumsal <frantisek@sumsal.cz>
Sat, 4 Nov 2023 12:58:18 +0000 (13:58 +0100)
Follow-up to e4080a6d97.

src/udev/udevadm-control.c

index 90b9b39e22cacc74a82b60c0191321abcbfb6433..2297a505703def707a4899c81a54e706d886ddaa 100644 (file)
@@ -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");