Jerome BENOIT <[EMAIL PROTECTED]> wrote: Hi,
> total 0 > lrwxrwxrwx 1 root root 6 2007-12-07 01:21 appletouchpad -> mouse1 > drwxr-xr-x 2 root root 200 2007-12-07 01:30 by-path > crw-rw---- 1 root root 13, 64 2007-12-07 01:21 event0 > crw-rw---- 1 root root 13, 65 2007-12-07 01:21 event1 > crw-rw---- 1 root root 13, 74 2007-12-07 01:21 event10 > crw-rw---- 1 root root 13, 76 2007-12-07 01:30 event12 > crw-rw---- 1 root root 13, 66 2007-12-07 01:21 event2 > crw-rw---- 1 root root 13, 67 2007-12-07 01:21 event3 > crw-rw---- 1 root root 13, 68 2007-12-07 01:21 event4 > crw-rw---- 1 root root 13, 69 2007-12-07 01:21 event5 > crw-rw---- 1 root root 13, 70 2007-12-07 01:21 event6 > crw-rw---- 1 root root 13, 71 2007-12-07 01:21 event7 > crw-rw---- 1 root root 13, 72 2007-12-07 01:21 event8 > crw-rw---- 1 root root 13, 73 2007-12-07 01:21 event9 > crw-rw---- 1 root root 13, 63 2007-12-07 01:21 mice > lrwxrwxrwx 1 root root 6 2007-12-07 01:30 mightymouse -> mouse2 > crw-rw---- 1 root root 13, 32 2007-12-07 01:21 mouse0 > crw-rw---- 1 root root 13, 33 2007-12-07 01:21 mouse1 > crw-rw---- 1 root root 13, 34 2007-12-07 01:30 mouse2 I don't see anything that would exceed the size of the inotify_event struct, so all of this should really fit into the array of size 2 that the current code uses. But maybe you have some devices that weren't plugged in at the time you ran this ls ? Anyway, I'm reworking this piece of code right now, so I'll ask you to test the SVN trunk in a moment. JB. -- Julien BLACHE <[EMAIL PROTECTED]> | Debian, because code matters more Debian & GNU/Linux Developer | <http://www.debian.org> Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]