Yep, still polling at the same rate doing inotify add watches:
root@ubuntu-phablet:~# strace -f -p 2078 Process 2078 attached with 4 threads [pid 2091] restart_syscall(<... resuming interrupted call ...> <unfinished ...> [pid 2081] restart_syscall(<... resuming interrupted call ...> <unfinished ...> [pid 2080] restart_syscall(<... resuming interrupted call ...> <unfinished ...> [pid 2078] restart_syscall(<... resuming interrupted call ...> <unfinished ...> [pid 2091] <... restart_syscall resumed> ) = 0 [pid 2091] clock_gettime(CLOCK_MONOTONIC, {4118, 702253017}) = 0 [pid 2091] inotify_add_watch(13, "/usr/local/share/applications", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] inotify_add_watch(13, "/usr/share/ubuntu-touch/applications", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] inotify_add_watch(13, "/etc/xdg/xdg-ubuntu-touch", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] clock_gettime(CLOCK_MONOTONIC, {4118, 704436632}) = 0 [pid 2091] poll([{fd=12, events=POLLIN}, {fd=13, events=POLLIN}], 2, 3997) = 0 (Timeout) [pid 2091] clock_gettime(CLOCK_MONOTONIC, {4122, 706523555}) = 0 [pid 2091] inotify_add_watch(13, "/usr/local/share/applications", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] inotify_add_watch(13, "/usr/share/ubuntu-touch/applications", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] inotify_add_watch(13, "/etc/xdg/xdg-ubuntu-touch", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] clock_gettime(CLOCK_MONOTONIC, {4122, 708504478}) = 0 [pid 2091] poll([{fd=12, events=POLLIN}, {fd=13, events=POLLIN}], 2, 3992) = 0 (Timeout) [pid 2091] clock_gettime(CLOCK_MONOTONIC, {4126, 705271171}) = 0 [pid 2091] inotify_add_watch(13, "/usr/local/share/applications", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] inotify_add_watch(13, "/usr/share/ubuntu-touch/applications", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] inotify_add_watch(13, "/etc/xdg/xdg-ubuntu-touch", IN_MODIFY|IN_ATTRIB|IN_CLOSE_WRITE|IN_MOVED_FROM|IN_MOVED_TO|IN_CREATE|IN_DELETE|IN_DELETE_SELF|IN_MOVE_SELF|IN_UNMOUNT|IN_ONLYDIR) = -1 ENOENT (No such file or directory) [pid 2091] clock_gettime(CLOCK_MONOTONIC, {4126, 706779632}) = 0
Yep, still polling at the same rate doing inotify add watches:
root@ubuntu- phablet: ~# strace -f -p 2078 syscall( <... resuming interrupted call ...> <unfinished ...> syscall( <... resuming interrupted call ...> <unfinished ...> syscall( <... resuming interrupted call ...> <unfinished ...> syscall( <... resuming interrupted call ...> <unfinished ...> CLOCK_MONOTONIC , {4118, 702253017}) = 0 add_watch( 13, "/usr/local/ share/applicati ons", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) add_watch( 13, "/usr/share/ ubuntu- touch/applicati ons", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) add_watch( 13, "/etc/xdg/ xdg-ubuntu- touch", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) CLOCK_MONOTONIC , {4118, 704436632}) = 0 CLOCK_MONOTONIC , {4122, 706523555}) = 0 add_watch( 13, "/usr/local/ share/applicati ons", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) add_watch( 13, "/usr/share/ ubuntu- touch/applicati ons", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) add_watch( 13, "/etc/xdg/ xdg-ubuntu- touch", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) CLOCK_MONOTONIC , {4122, 708504478}) = 0 CLOCK_MONOTONIC , {4126, 705271171}) = 0 add_watch( 13, "/usr/local/ share/applicati ons", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) add_watch( 13, "/usr/share/ ubuntu- touch/applicati ons", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) add_watch( 13, "/etc/xdg/ xdg-ubuntu- touch", IN_MODIFY| IN_ATTRIB| IN_CLOSE_ WRITE|IN_ MOVED_FROM| IN_MOVED_ TO|IN_CREATE| IN_DELETE| IN_DELETE_ SELF|IN_ MOVE_SELF| IN_UNMOUNT| IN_ONLYDIR) = -1 ENOENT (No such file or directory) CLOCK_MONOTONIC , {4126, 706779632}) = 0
Process 2078 attached with 4 threads
[pid 2091] restart_
[pid 2081] restart_
[pid 2080] restart_
[pid 2078] restart_
[pid 2091] <... restart_syscall resumed> ) = 0
[pid 2091] clock_gettime(
[pid 2091] inotify_
[pid 2091] inotify_
[pid 2091] inotify_
[pid 2091] clock_gettime(
[pid 2091] poll([{fd=12, events=POLLIN}, {fd=13, events=POLLIN}], 2, 3997) = 0 (Timeout)
[pid 2091] clock_gettime(
[pid 2091] inotify_
[pid 2091] inotify_
[pid 2091] inotify_
[pid 2091] clock_gettime(
[pid 2091] poll([{fd=12, events=POLLIN}, {fd=13, events=POLLIN}], 2, 3992) = 0 (Timeout)
[pid 2091] clock_gettime(
[pid 2091] inotify_
[pid 2091] inotify_
[pid 2091] inotify_
[pid 2091] clock_gettime(