diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-05-28 12:07:27 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-05-28 12:07:27 +0200 |
commit | c830e98d6a8e43b1b5cc8470aa750960989778bc (patch) | |
tree | 1ba2eb3968308f4c9249e1f0c264e4655b51ca35 /udev/udev-event.c | |
parent | 7bf44da99c0526bc46beff451353ca15ff7ce1bd (diff) |
udevd: read debug settings from kernel commandline
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r-- | udev/udev-event.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c index 44e24313f5..7591d5e314 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -681,6 +681,10 @@ int udev_event_execute_run(struct udev_event *event, const sigset_t *sigmask) udev_event_apply_format(event, cmd, program, sizeof(program)); envp = udev_device_get_properties_envp(event->dev); + if (event->exec_delay > 0) { + info(event->udev, "delay execution of '%s'\n", program); + sleep(event->exec_delay); + } if (util_run_program(event->udev, program, envp, NULL, 0, NULL, sigmask, true) != 0) { if (udev_list_entry_get_flags(list_entry)) err = -1; |