[brasero/gnome-2-26] Fix #580617 – Brasero floods .xsession-errors log with "Unknown (or already deleted) monitored dir



commit 6ebe65d4ce24f1487770bb8c1084e53f3dc85763
Author: Philippe Rouquier <bonfire-app wanadoo fr>
Date:   Fri Jun 26 10:51:53 2009 +0200

    Fix #580617 â?? Brasero floods .xsession-errors log with "Unknown (or already deleted) monitored directory" warnings

 src/brasero-file-monitor.c |   10 +++++++---
 1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/src/brasero-file-monitor.c b/src/brasero-file-monitor.c
index eeeadbc..1e94c42 100644
--- a/src/brasero-file-monitor.c
+++ b/src/brasero-file-monitor.c
@@ -543,13 +543,17 @@ brasero_file_monitor_inotify_monitor_cb (GIOChannel *channel,
 								      name,
 								      &event);
 			}
-			else
-				g_warning ("Unknown (or already deleted) monitored directory = > ignored");
+			else {
+				int dev_fd;
+
+				dev_fd = g_io_channel_unix_get_fd (channel);
+				inotify_rm_watch (dev_fd, event.wd);
+			}
 		}
 		else {
 			GSList *list;
 
-			/* This is an event happening on the top directory there*/
+			/* This is an event happening on the top directory there */
 			list = callback_data;
 			brasero_file_monitor_inotify_file_event (self,
 								 list,



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]