lib/rb-fsevent/fsevent.rb in rb-fsevent-0.3.2 vs lib/rb-fsevent/fsevent.rb in rb-fsevent-0.3.3

- old
+ new

@@ -10,20 +10,20 @@ launch_bin listen end def stop - Process.kill("HUP", pipe.pid) if pipe + Process.kill("KILL", pipe.pid) if pipe end private def bin_path File.expand_path(File.join(File.dirname(__FILE__), '..', '..', 'bin')) end def launch_bin - @pipe = IO.popen("#{bin_path}/fsevent_watch #{path}") + @pipe = IO.popen("#{bin_path}/fsevent_watch #{path.shellescape}") end def listen while !pipe.eof? if line = pipe.readline \ No newline at end of file