summaryrefslogtreecommitdiff
path: root/src/ck-file-monitor-inotify.c
AgeCommit message (Collapse)AuthorFilesLines
2014-09-30Clean up some compiler warnings and deprecated functionsEric Koegel1-3/+0
Signed-off-by: Eric Koegel <eric.koegel@gmail.com>
2009-02-11serialize removals, and avoid using freed data caused by removalsJames Westby1-32/+94
I changed the code to also loop through watch->notifies when removing the watch due to inotify, and NULL each notify->watch reference, the code then checks this before trying to delete the watch itself if asked to remove the notify. In order to prevent other race conditions in this area I also made the inotify code not pass a watch to emit_events_in_idle, as the watch may get freed in the meantime. It instead passes the wd and the emit loop looks up the watch, discarding the event if the watch has been removed. I did however leave in the code that checks for a removed watch before doing anything with inotify, as I hoped that this would just optimise this case.
2007-08-28untabifyWilliam Jon McCann1-1/+1
2007-04-05use inotify to detect activity on tty when possibleWilliam Jon McCann1-0/+669