summaryrefslogtreecommitdiff
path: root/udev/udevadm-control.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2008-09-09 15:14:38 +0200
committerKay Sievers <kay.sievers@vrfy.org>2008-09-09 15:14:38 +0200
commit3bc7c84cf07eae90aee2a0972a4441652e4d38f6 (patch)
treecc7bd4cf3fde2bd021e499e75cbbe8569781a6dd /udev/udevadm-control.c
parentbd770e018301edd34c53d276872865ca13e824fa (diff)
udevd: remove max_childs_running logic
This was needed in the old days, where all the hotplug scripts did nothing better than sleep for seconds to work around timing issues. It made sure, that w continued to fork processes, while the machine was doing nothing than sleeping, but the maximim number of childs was already reached. This is no longer needed today, we do not run many of these scripts anymore.
Diffstat (limited to 'udev/udevadm-control.c')
-rw-r--r--udev/udevadm-control.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/udev/udevadm-control.c b/udev/udevadm-control.c
index c710811ed4..3dc7a1b52c 100644
--- a/udev/udevadm-control.c
+++ b/udev/udevadm-control.c
@@ -42,7 +42,6 @@ static void print_help(void)
" --reload-rules reloads the rules files\n"
" --env=<KEY>=<value> set a global environment variable\n"
" --max-childs=<N> maximum number of childs\n"
- " --max-childs-running=<N> maximum number of childs running at the same time\n"
" --help print this help text\n\n");
}
@@ -64,8 +63,6 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
{ "env", 1, NULL, 'e' },
{ "max-childs", 1, NULL, 'm' },
{ "max_childs", 1, NULL, 'm' + 256},
- { "max-childs-running", 1, NULL, 'M' },
- { "max_childs_running", 1, NULL, 'M' + 256},
{ "help", 0, NULL, 'h' },
{}
};
@@ -139,16 +136,6 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
udev_ctrl_send_set_max_childs(uctrl, i);
rc = 0;
break;
- case 'M':
- case 'M' + 256:
- i = strtoul(optarg, &endp, 0);
- if (endp[0] != '\0' || i < 1) {
- fprintf(stderr, "invalid number '%s'\n", optarg);
- goto exit;
- }
- udev_ctrl_send_set_max_childs_running(uctrl, i);
- rc = 0;
- break;
case 'h':
print_help();
rc = 0;
@@ -187,10 +174,6 @@ int udevadm_control(struct udev *udev, int argc, char *argv[])
udev_ctrl_send_set_max_childs(uctrl, strtoul(&arg[strlen("max_childs=")], NULL, 0));
rc = 0;
goto exit;
- } else if (!strncmp(arg, "max_childs_running=", strlen("max_childs_running="))) {
- udev_ctrl_send_set_max_childs_running(uctrl, strtoul(&arg[strlen("max_childs_running=")], NULL, 0));
- rc = 0;
- goto exit;
} else if (!strncmp(arg, "env", strlen("env"))) {
udev_ctrl_send_set_env(uctrl, &arg[strlen("env=")]);
rc = 0;