diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-26 03:41:58 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-11-26 03:41:58 +0000 |
commit | de85c525b66f8ae9e42016f5c5b65de85ab0e449 (patch) | |
tree | 5b2d9c3258fee7449e6eda05a331e8931ea55aee /base/files/file_path_watcher_linux.cc | |
parent | 0e699c59bf690c2c0b622bfaf04b6c4ddb260a91 (diff) | |
download | chromium_src-de85c525b66f8ae9e42016f5c5b65de85ab0e449.zip chromium_src-de85c525b66f8ae9e42016f5c5b65de85ab0e449.tar.gz chromium_src-de85c525b66f8ae9e42016f5c5b65de85ab0e449.tar.bz2 |
FilePathWatcherLinux should be more verbose if inotify_init() fails.
R=benwells@chromium.org
TBR=mnissler@chromium.org
Review URL: https://codereview.chromium.org/87033002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@237247 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'base/files/file_path_watcher_linux.cc')
-rw-r--r-- | base/files/file_path_watcher_linux.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/base/files/file_path_watcher_linux.cc b/base/files/file_path_watcher_linux.cc index f551411..3df283d0 100644 --- a/base/files/file_path_watcher_linux.cc +++ b/base/files/file_path_watcher_linux.cc @@ -217,6 +217,9 @@ InotifyReader::InotifyReader() : thread_("inotify_reader"), inotify_fd_(inotify_init()), valid_(false) { + if (inotify_fd_ < 0) + PLOG(ERROR) << "inotify_init() failed"; + shutdown_pipe_[0] = -1; shutdown_pipe_[1] = -1; if (inotify_fd_ >= 0 && pipe(shutdown_pipe_) == 0 && thread_.Start()) { |