summaryrefslogtreecommitdiff
path: root/src/udev/udevd.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-08-08 16:27:11 +0200
committerKay Sievers <kay@vrfy.org>2012-08-08 16:27:11 +0200
commit7781e063e8e9d3e92e4e158e1588b885808cda24 (patch)
tree05a1c5e6800ebe659929250a8db18d91badd616f /src/udev/udevd.c
parent3b8c1cb01f1b752543738779668d9841ecbca0d3 (diff)
udev: re-initialize builtins in the daemon process, not in the worker
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r--src/udev/udevd.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c
index b78c18f20a..23351aebd5 100644
--- a/src/udev/udevd.c
+++ b/src/udev/udevd.c
@@ -1107,7 +1107,7 @@ int main(int argc, char *argv[])
case 'D':
debug = true;
log_set_max_level(LOG_DEBUG);
- udev_set_log_priority(udev, LOG_INFO);
+ udev_set_log_priority(udev, LOG_DEBUG);
break;
case 'N':
if (strcmp (optarg, "early") == 0) {
@@ -1486,7 +1486,7 @@ int main(int argc, char *argv[])
worker_kill(udev);
rules = udev_rules_unref(rules);
udev_builtin_exit(udev);
- reload = 0;
+ reload = false;
}
/* event has finished */
@@ -1506,6 +1506,7 @@ int main(int argc, char *argv[])
/* start new events */
if (!udev_list_node_is_empty(&event_list) && !udev_exit && !stop_exec_queue) {
+ udev_builtin_init(udev);
if (rules == NULL)
rules = udev_rules_new(udev, resolve_names);
if (rules != NULL)