rpms/gamin/devel gamin-inotify-fix.patch, NONE, 1.1 gamin.spec, 1.52, 1.53
fedora-cvs-commits at redhat.com
fedora-cvs-commits at redhat.com
Fri Sep 8 12:46:11 UTC 2006
- Previous message (by thread): rpms/freeradius/devel freeradius-1.1.3-build.patch, NONE, 1.1 .cvsignore, 1.12, 1.13 freeradius.spec, 1.34, 1.35 sources, 1.12, 1.13 freeradius-0.9.3-gcc34.patch, 1.1, NONE freeradius-1.0.0-libdir.patch, 1.1, NONE freeradius-1.0.0-pie.patch, 1.1, NONE freeradius-1.0.0-sasl2.patch, 1.1, NONE freeradius-1.0.1-build.patch, 1.1, NONE freeradius-1.0.1-radrelay.patch, 1.1, NONE freeradius-1.0.2-sasl2.patch, 1.1, NONE freeradius-1.0.4-build.patch, 1.1, NONE freeradius-1.0.4-realloc-return.patch, 1.1, NONE freeradius-1.0.5-libdir.patch, 1.1, NONE freeradius-1.1.1-build.patch, 1.1, NONE freeradius-1.1.2-build.patch, 1.1, NONE
- Next message (by thread): rpms/kernel/devel linux-2.6-gfs2-dlm.patch,1.16,1.16.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
Author: alexl
Update of /cvs/dist/rpms/gamin/devel
In directory cvs.devel.redhat.com:/tmp/cvs-serv17274
Modified Files:
gamin.spec
Added Files:
gamin-inotify-fix.patch
Log Message:
* Fri Sep 8 2006 Alexander Larsson <alexl at redhat.com> - 0.1.7-7
- Fix problems in new inotify backend (#205731)
gamin-inotify-fix.patch:
gam_connection.c | 3 ++-
gam_inotify.c | 3 +++
inotify-helper.c | 17 +++++------------
inotify-sub.c | 4 +---
4 files changed, 11 insertions(+), 16 deletions(-)
--- NEW FILE gamin-inotify-fix.patch ---
Index: server/gam_connection.c
===================================================================
RCS file: /cvs/gnome/gamin/server/gam_connection.c,v
retrieving revision 1.31
diff -u -p -r1.31 gam_connection.c
--- server/gam_connection.c 5 Sep 2006 14:26:56 -0000 1.31
+++ server/gam_connection.c 8 Sep 2006 12:42:41 -0000
@@ -108,7 +108,8 @@ gam_connection_close(GamConnDataPtr conn
g_assert(conn->source);
/* Kill the queue event source */
- g_source_remove (conn->eq_source);
+ if (conn->eq_source != 0)
+ g_source_remove (conn->eq_source);
/* Flush the event queue */
gam_eq_flush (conn->eq, conn);
/* Kill the event queue */
Index: server/gam_inotify.c
===================================================================
RCS file: /cvs/gnome/gamin/server/gam_inotify.c,v
retrieving revision 1.52
diff -u -p -r1.52 gam_inotify.c
--- server/gam_inotify.c 5 Sep 2006 14:17:20 -0000 1.52
+++ server/gam_inotify.c 8 Sep 2006 12:42:41 -0000
@@ -161,6 +161,9 @@ gboolean
gam_inotify_add_subscription (GamSubscription *sub)
{
ih_sub_t *isub = NULL;
+
+ gam_listener_add_subscription(gam_subscription_get_listener(sub), sub);
+
isub = ih_sub_new (gam_subscription_get_path (sub), gam_subscription_is_dir (sub), 0, sub);
if (!ih_sub_add (isub))
Index: server/inotify-helper.c
===================================================================
RCS file: /cvs/gnome/gamin/server/inotify-helper.c,v
retrieving revision 1.1
diff -u -p -r1.1 inotify-helper.c
--- server/inotify-helper.c 5 Sep 2006 00:49:00 -0000 1.1
+++ server/inotify-helper.c 8 Sep 2006 12:42:41 -0000
@@ -161,28 +161,21 @@ static void
ih_sub_foreach_worker (void *callerdata, gboolean (*f)(ih_sub_t *sub, void *callerdata), gboolean free)
{
GList *l = NULL;
- GList *removed = NULL;
+ GList *next = NULL;
G_LOCK(inotify_lock);
- for (l = sub_list; l; l = l->next)
+ for (l = sub_list; l; l = next)
{
ih_sub_t *sub = l->data;
-
+ next = l->next;
+
if (f(sub, callerdata))
{
- removed = g_list_prepend (removed, l);
- ih_sub_cancel (sub);
+ ih_sub_cancel (sub); /* Removes sub from sub_list */
if (free)
ih_sub_free (sub);
}
- }
-
- for (l = removed; l ; l = l->next)
- {
- GList *llink = l->data;
- sub_list = g_list_remove_link (sub_list, llink);
- g_list_free_1 (llink);
}
G_UNLOCK(inotify_lock);
Index: server/inotify-sub.c
===================================================================
RCS file: /cvs/gnome/gamin/server/inotify-sub.c,v
retrieving revision 1.1
diff -u -p -r1.1 inotify-sub.c
--- server/inotify-sub.c 5 Sep 2006 00:49:00 -0000 1.1
+++ server/inotify-sub.c 8 Sep 2006 12:42:41 -0000
@@ -71,9 +71,7 @@ gchar *ih_sub_get_dirname (gchar *pathna
static
gchar *ih_sub_get_filename (gchar *pathname)
{
- gchar *out;
- // FIXME: return filename here
- return out;
+ return g_path_get_basename (pathname);
}
static
Index: gamin.spec
===================================================================
RCS file: /cvs/dist/rpms/gamin/devel/gamin.spec,v
retrieving revision 1.52
retrieving revision 1.53
diff -u -r1.52 -r1.53
--- gamin.spec 5 Sep 2006 14:13:06 -0000 1.52
+++ gamin.spec 8 Sep 2006 12:46:09 -0000 1.53
@@ -1,7 +1,7 @@
Summary: Library providing the FAM File Alteration Monitor API
Name: gamin
Version: 0.1.7
-Release: 6%{?dist}
+Release: 7%{?dist}
License: LGPL
Group: Development/Libraries
Source: gamin-%{version}.tar.gz
@@ -17,8 +17,9 @@
Patch3: gamin-flush-buffer-on-reset.patch
Patch4: gamin-0.1.7-sigaction.patch
Patch5: gamin-new-inotify-backend.patch
-Patch6: gamin-timer-on-demand.patch
-Patch7: gamin-no-timers.patch
+Patch6: gamin-inotify-fix.patch
+Patch7: gamin-timer-on-demand.patch
+Patch8: gamin-no-timers.patch
%description
This C library provides an API and ABI compatible file alteration
@@ -56,8 +57,9 @@
%patch3 -p0 -b .flush-buffer-on-reset
%patch4 -p1 -b .sigaction
%patch5 -p1 -b .new-inotify-backend
-%patch6 -p1 -b .timer-on-demand
-%patch7 -p0 -b .no-timers
+%patch6 -p0 -b .inotify-fix
+%patch7 -p1 -b .timer-on-demand
+%patch8 -p0 -b .no-timers
%build
autoreconf --force --install
@@ -106,6 +108,9 @@
%doc doc/python.html
%changelog
+* Fri Sep 8 2006 Alexander Larsson <alexl at redhat.com> - 0.1.7-7
+- Fix problems in new inotify backend (#205731)
+
* Tue Sep 5 2006 Alexander Larsson <alexl at redhat.com> - 0.1.7-6
- Remove last regular timers from gamin
- Previous message (by thread): rpms/freeradius/devel freeradius-1.1.3-build.patch, NONE, 1.1 .cvsignore, 1.12, 1.13 freeradius.spec, 1.34, 1.35 sources, 1.12, 1.13 freeradius-0.9.3-gcc34.patch, 1.1, NONE freeradius-1.0.0-libdir.patch, 1.1, NONE freeradius-1.0.0-pie.patch, 1.1, NONE freeradius-1.0.0-sasl2.patch, 1.1, NONE freeradius-1.0.1-build.patch, 1.1, NONE freeradius-1.0.1-radrelay.patch, 1.1, NONE freeradius-1.0.2-sasl2.patch, 1.1, NONE freeradius-1.0.4-build.patch, 1.1, NONE freeradius-1.0.4-realloc-return.patch, 1.1, NONE freeradius-1.0.5-libdir.patch, 1.1, NONE freeradius-1.1.1-build.patch, 1.1, NONE freeradius-1.1.2-build.patch, 1.1, NONE
- Next message (by thread): rpms/kernel/devel linux-2.6-gfs2-dlm.patch,1.16,1.16.4.1
- Messages sorted by:
[ date ]
[ thread ]
[ subject ]
[ author ]
More information about the fedora-cvs-commits
mailing list