diff options
author | Scott James Remnant <scott@ubuntu.com> | 2009-02-23 17:17:20 +0000 |
---|---|---|
committer | Scott James Remnant <scott@ubuntu.com> | 2009-02-23 17:17:20 +0000 |
commit | 5ae82640c5f02c9be22e01da367875e8a3e636bf (patch) | |
tree | e0bf2e2b0996a8691b02c91f4935ad07983992b3 /udev/udev-event.c | |
parent | e8c84c98b9452dd1f4fe738f7e12149e0198dff6 (diff) |
Don't add inotify watch until RUN rules processed.
The programs we RUN can open device nodes, and thus we can end up
chasing our own tail.
Diffstat (limited to 'udev/udev-event.c')
-rw-r--r-- | udev/udev-event.c | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/udev/udev-event.c b/udev/udev-event.c index 592da01099..e34f09cfe3 100644 --- a/udev/udev-event.c +++ b/udev/udev-event.c @@ -600,14 +600,6 @@ int udev_event_execute_rules(struct udev_event *event, struct udev_rules *rules) /* create new node and symlinks */ err = udev_node_add(dev, event->mode, event->uid, event->gid); - - /* watch for changes */ - if (event->inotify_watch && inotify_fd != -1) { - info(event->udev, "device will be watched for changes\n"); - udev_watch_begin(event->udev, event->dev); - } else { - udev_watch_clear(event->udev, event->dev); - } goto exit; } |