aboutsummaryrefslogtreecommitdiffhomepage
path: root/fish_tests.cpp
diff options
context:
space:
mode:
authorGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-16 13:37:23 +0800
committerGravatar ridiculousfish <corydoras@ridiculousfish.com>2014-05-16 13:37:23 +0800
commite214df898068080c65907f0dd1a5d8864e93636e (patch)
treea653decc9a35653a8363404a2b5f0f7c4cdc5dc3 /fish_tests.cpp
parente3cccdf571cafd82456fbcf5a000e22955d4b07c (diff)
Try using IN_DELETE_SELF with inotify
Diffstat (limited to 'fish_tests.cpp')
-rw-r--r--fish_tests.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/fish_tests.cpp b/fish_tests.cpp
index 6cdfafc7..28d6ec55 100644
--- a/fish_tests.cpp
+++ b/fish_tests.cpp
@@ -2409,7 +2409,7 @@ static bool test_basic_inotify_support()
}
/* Add file to watch list */
- int wd = inotify_add_watch(fd, INOTIFY_TEST_PATH, IN_DELETE);
+ int wd = inotify_add_watch(fd, INOTIFY_TEST_PATH, IN_DELETE | IN_DELETE_SELF);
if (wd < 0)
{
err(L"inotify_add_watch failed: %s", strerror(errno));
@@ -2437,7 +2437,6 @@ static bool test_basic_inotify_support()
if (count == 0 || ! FD_ISSET(fd, &fds))
{
inotify_works = false;
-
err(L"inotify file descriptor not readable. Is inotify busted?");
struct utsname version = {};
uname(&version);