diff options
| author | Francesco Abbate <francesco.bbt@gmail.com> | 2021-10-23 15:46:30 +0200 |
|---|---|---|
| committer | Francesco Abbate <francesco.bbt@gmail.com> | 2021-10-23 15:47:39 +0200 |
| commit | 80d837b05b0713f9ce268f8c64b048537741220d (patch) | |
| tree | f89fe761779aab608824224e6485669432c032e3 /lib | |
| parent | d41aed61c92ca24941d1f6820ec55cb52c988bab (diff) | |
| download | lite-xl-testing-2.0.3.tar.gz lite-xl-testing-2.0.3.zip | |
Fix assert with dmon on directory deletingtesting-2.0.3
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/dmon/dmon.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/dmon/dmon.h b/lib/dmon/dmon.h index ed10d11f..2bc9e0c3 100644 --- a/lib/dmon/dmon.h +++ b/lib/dmon/dmon.h @@ -927,8 +927,11 @@ _DMON_PRIVATE void dmon__inotify_process_events(void) dmon__strcat(watchdir, sizeof(watchdir), "/"); uint32_t mask = IN_MOVED_TO | IN_CREATE | IN_MOVED_FROM | IN_DELETE | IN_MODIFY; int wd = inotify_add_watch(watch->fd, watchdir, mask); - _DMON_UNUSED(wd); - DMON_ASSERT(wd != -1); + // Removing the assertion below because it was giving errors for some reason + // when building a new package. + // _DMON_UNUSED(wd); + // DMON_ASSERT(wd != -1); + if (wd == -1) continue; dmon__watch_subdir subdir; dmon__strcpy(subdir.rootdir, sizeof(subdir.rootdir), watchdir); |
