[brasero] Fix #580617 – Brasero floods .xsession-errors log with "Unknown (or already deleted) monitored dir
- From: Philippe Rouquier <philippr src gnome org>
- To: svn-commits-list gnome org
- Subject: [brasero] Fix #580617 – Brasero floods .xsession-errors log with "Unknown (or already deleted) monitored dir
- Date: Fri, 26 Jun 2009 10:04:13 +0000 (UTC)
commit be99b77512189d9bc32229e7fc0bc2773fe1b0c4
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
libbrasero-burn/brasero-file-monitor.c | 10 +++++++---
1 files changed, 7 insertions(+), 3 deletions(-)
---
diff --git a/libbrasero-burn/brasero-file-monitor.c b/libbrasero-burn/brasero-file-monitor.c
index f54873d..e73dbee 100644
--- a/libbrasero-burn/brasero-file-monitor.c
+++ b/libbrasero-burn/brasero-file-monitor.c
@@ -551,13 +551,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]