Revision f18aaff4
ID | f18aaff49fb7e9d211a9ea923ea056570b7b3d2e |
Parent | 6897a51e |
Child | 03b179ce |
Fix race in watchFile
As the calling of watchFile and the evaluation of the initial
getFStatSafe takes non-zero time, the file could have changed
before inotify was set up properly. Solve this problem by an
additional check for the watched value to have changed immediately
after setup of inotify.
Signed-off-by: Klaus Aehlig <aehlig@google.com>
Reviewed-by: Petr Pudlak <pudlak@google.com>
Files
- added
- modified
- copied
- renamed
- deleted