From 08a9df7bab30f3f7f8795aaa9041e623365ddfe0 Mon Sep 17 00:00:00 2001 From: Yann Lugrin Date: Thu, 21 Oct 2010 18:20:25 +0800 Subject: [PATCH] better support for jruby under linux (but all spec don't pass) --- lib/guard/listeners/linux.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/guard/listeners/linux.rb b/lib/guard/listeners/linux.rb index 371d9a3..a01c5f5 100644 --- a/lib/guard/listeners/linux.rb +++ b/lib/guard/listeners/linux.rb @@ -45,7 +45,7 @@ module Guard def watch_change while !@stop - if IO.select([inotify.to_io], [], [], latency) + if Config::CONFIG['build'] =~ /java/ || IO.select([inotify.to_io], [], [], latency) inotify.process unless files.empty?