summaryrefslogtreecommitdiff
path: root/Utils
diff options
context:
space:
mode:
authorcarlosg <carlosg>2006-09-18 01:46:13 +0000
committercarlosg <carlosg>2006-09-18 01:46:13 +0000
commit92de9ddc5a8d8774837dcb3d37436d78f5d53881 (patch)
treed0d6ec1735adad0649134c589d57604f7a08023f /Utils
parent2535a035b8940d0a7dc6c85efde9b0b6b982797f (diff)
2006-09-18 Carlos Garnacho <carlosg@gnome.org>
* Utils/Monitor.pm: tell the main loop to select() on the FAM file descriptor to avoid using timeouts.
Diffstat (limited to 'Utils')
-rw-r--r--Utils/Monitor.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/Utils/Monitor.pm b/Utils/Monitor.pm
index f2d558f..ac71afe 100644
--- a/Utils/Monitor.pm
+++ b/Utils/Monitor.pm
@@ -93,7 +93,9 @@ sub init_file_monitor
{
return if (!$has_gamin);
- Net::DBus::Reactor->main->add_timeout (500, Net::DBus::Callback->new(method => \&Utils::Monitor::do_monitor_files));
+ # should not use internal stuff in $fm like that
+ Net::DBus::Reactor->main->add_read ($fm->{conn}->fd (),
+ Net::DBus::Callback->new(method => \&Utils::Monitor::do_monitor_files));
}
1;