[Mac] Fix a crash following destruction of a FilePathWatcher.
FilePathWatcherKQueue::Watch uses a FileDescriptorWatcher, which requires that its callers handle spurious runs of callbacks after the watch is cancelled. If this speculative fix resolves the crash, a follow-on CL will revise the FileDescriptorWatcher documentation to make this case explicit. BUG=1156603 R=fdoray@chromium.org Change-Id: I7d5da3fb4e58cf30efab21963908b3ff41e9dc71 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2593379 Commit-Queue: Greg Thompson <grt@chromium.org> Auto-Submit: Greg Thompson <grt@chromium.org> Reviewed-by:Daniel Cheng <dcheng@chromium.org> Cr-Commit-Position: refs/heads/master@{#837852}
Showing
Please register or sign in to comment