1
0
mirror of https://github.com/systemd/systemd.git synced 2025-08-13 21:49:54 +03:00

Look at more inotify events in the buffer than just the first.

This commit is contained in:
Scott James Remnant
2009-02-23 18:33:49 +00:00
parent b8e96d67a2
commit 80be8c48c5

View File

@ -546,9 +546,10 @@ static int handle_inotify(struct udev *udev)
read(inotify_fd, buf, nbytes);
for (pos = 0, ev = (struct inotify_event *)(buf + pos); pos < nbytes; pos += sizeof(struct inotify_event) + ev->len) {
for (pos = 0; pos < nbytes; pos += sizeof(struct inotify_event) + ev->len) {
struct udev_device *dev;
ev = (struct inotify_event *)(buf + pos);
if (ev->len) {
dbg(udev, "inotify event: %x for %s\n", ev->mask, ev->name);
reload_config = 1;