<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -21,7 +21,11 @@ end
 
 command = ARGV.join(' ')
 
-puts &quot;Monitoring: #{files.join(', ')}&quot; if opts[:verbose]
+if opts[:verbose]
+  puts &quot;Monitoring started: #{files.join(', ')}&quot;
+else
+  puts &quot;Monitoring started&quot;
+end
 
 times = {}
 files.each { |file| times[file] = File.mtime(file) }
@@ -37,7 +41,8 @@ loop do
   files.each do |file|
     if File.mtime(file) &gt; times[file]
       puts &quot;#{file} changed, running command.&quot; if opts[:verbose]
-      fork { exec command.gsub('%%', file) }
+      pid = fork { exec command.gsub('%%', file) }
+      Process.detach pid
     end
     times[file] = File.mtime(file)
   end</diff>
      <filename>trigger</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3cfd53b9eedb6534f4207988a5a9c9dee6ce8fe1</id>
    </parent>
  </parents>
  <author>
    <name>madx</name>
    <email>root@yapok.org</email>
  </author>
  <url>http://github.com/madx/trigger/commit/833139d09176312d0478f1ea826154469f5c52cc</url>
  <id>833139d09176312d0478f1ea826154469f5c52cc</id>
  <committed-date>2009-07-06T09:23:21-07:00</committed-date>
  <authored-date>2009-07-06T09:23:21-07:00</authored-date>
  <message>some zombie hunting</message>
  <tree>b3f27aaaa71f6d746da6e4ba23e0ace609017255</tree>
  <committer>
    <name>madx</name>
    <email>root@yapok.org</email>
  </committer>
</commit>
