ranmocy / guard-rails

Guard-Rails is watching on your development servers as you wish!
http://ranmocy.github.com/guard-rails
MIT License
137 stars 25 forks source link

Refactor use of #wait_for_pid_loop. Ensure pid_file gets deleted when removed #15

Closed cablegram closed 11 years ago

cablegram commented 11 years ago

On a file system with multiple threads accessing the same file, the FileUtils#rm command may encounter access_violation errors. Retrying fixes this. You can see this error if you replace the FileUtils#rm call with a call to system('rm -f ...'). FileUtils#rm does not report the error, but behaves functionally the same as calling system('rm -f ...').