chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
b8e96d6
)
Look at more inotify events in the buffer than just the first.
author
Scott James Remnant
<scott@ubuntu.com>
Mon, 23 Feb 2009 18:33:49 +0000
(18:33 +0000)
committer
Scott James Remnant
<scott@ubuntu.com>
Mon, 23 Feb 2009 18:33:49 +0000
(18:33 +0000)
udev/udevd.c
patch
|
blob
|
history
diff --git
a/udev/udevd.c
b/udev/udevd.c
index 5598628a5150ae657970185c891a9bf1316beff3..cfc091b699067e7d2e47214880b85ef9feb99d2f 100644
(file)
--- a/
udev/udevd.c
+++ b/
udev/udevd.c
@@
-546,9
+546,10
@@
static int handle_inotify(struct udev *udev)
read(inotify_fd, buf, nbytes);
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;
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;
if (ev->len) {
dbg(udev, "inotify event: %x for %s\n", ev->mask, ev->name);
reload_config = 1;