mirror of
https://github.com/fish-shell/fish-shell
synced 2024-12-26 12:53:13 +00:00
Try using IN_DELETE_SELF with inotify
This commit is contained in:
parent
e3cccdf571
commit
e214df8980
1 changed files with 1 additions and 2 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue