This website works better with JavaScript.
Home
Explore
Help
Sign In
Immanuel
/
sxiv
Watch
1
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Releases
0
Wiki
Activity
Browse Source
Simplify inotify cleanup
master
Bert Münnich
7 years ago
parent
8bce80fdae
commit
6695cd4c34
1 changed files
with
2 additions
and
2 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+2
-2
autoreload_inotify.c
+ 2
- 2
autoreload_inotify.c
View File
@@ -27,8 +27,8 @@
CLEANUP void arl_cleanup(arl_t *arl)
{
if (arl->fd != -1
&& arl->wd != -1
)
inotify_rm_watch(arl->fd, arl->w
d);
if (arl->fd != -1)
close(arl->f
d);
}
static void arl_setup_dir(arl_t *arl, const char *filepath)
Write
Preview
Loading…
Cancel
Save