I recently noticed inotify_add_watch() system call always returns 0

(assuming fd1 has a valid descriptor returned by inotify_init() )

    if((wd1 = inotify_add_watch(fd1,path1, IN_OPEN | IN_ACCESS | IN_ATTRIB)) < 
0)
        perror("inotify_add_watch failed");

    fprintf(stderr, "wd1= %d\n", wd1 );

This piece of code always prints "wd1= 0".

-- 
inotify watches limit in karmic is too low ( 
/proc/sys/fs/inotify/max_user_watches )
https://bugs.launchpad.net/bugs/408981
You received this bug notification because you are a member of Ubuntu
Bugs, which is a direct subscriber.

-- 
ubuntu-bugs mailing list
[email protected]
https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs

Reply via email to