« Previous | Next » 

Revision f18aaff4

IDf18aaff49fb7e9d211a9ea923ea056570b7b3d2e
Parent 6897a51e
Child 03b179ce

Added by Klaus Aehlig over 10 years ago

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 <>
Reviewed-by: Petr Pudlak <>

Files

  • added
  • modified
  • copied
  • renamed
  • deleted

View differences