summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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");