diff options
Diffstat (limited to 'base/directory_watcher_inotify.cc')
-rw-r--r-- | base/directory_watcher_inotify.cc | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/base/directory_watcher_inotify.cc b/base/directory_watcher_inotify.cc index d171a7a..c593ff5 100644 --- a/base/directory_watcher_inotify.cc +++ b/base/directory_watcher_inotify.cc @@ -272,7 +272,9 @@ InotifyReader::~InotifyReader() { if (valid_) { // Write to the self-pipe so that the select call in InotifyReaderTask // returns. - HANDLE_EINTR(write(shutdown_pipe_[1], "", 1)); + ssize_t ret = HANDLE_EINTR(write(shutdown_pipe_[1], "", 1)); + DPCHECK(ret > 0); + DCHECK_EQ(ret, 1); thread_.Stop(); } if (inotify_fd_ >= 0) |