[gamin] Patch to fix inotify backend for gamin
- From: ANDREI LAHUN <zhirnyi yahoo com>
- To: gamin-list gnome org
- Subject: [gamin] Patch to fix inotify backend for gamin
- Date: Sun, 3 Apr 2005 05:43:18 -0700 (PDT)
Hello.
I find out that gamin doesnot really work
with inotify backend. After spending some
time i fixed at least one problem.
After applying this patch
at least nautilus auto update files
which were added from shell.
Andrei.
__________________________________
Do you Yahoo!?
Yahoo! Personals - Better first dates. More second dates.
http://personals.yahoo.com
--- gamin/server/gam_inotify.c 2005-04-03 12:43:34.000000000 +0200
+++ gamin-bk/server/gam_inotify.c 2005-04-03 14:06:34.000000000 +0200
@@ -94,6 +94,7 @@
INotifyData *data;
struct inotify_watch_request iwr;
int wd,r;
+ int fd_f;
G_LOCK(inotify);
@@ -118,17 +119,17 @@
}
{
- int fd = open(path, O_RDONLY);
+ int fd_f = open(path, O_RDONLY);
- if (fd < 0) {
+ if (fd_f < 0) {
G_UNLOCK(inotify);
return;
}
- iwr.fd = fd;
+ iwr.fd = fd_f;
iwr.mask = 0xffffffff; // all events
wd = ioctl(fd, INOTIFY_WATCH, &iwr);
- close (fd);
+ close (fd_f);
}
if (wd < 0) {
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]