<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -9,12 +9,14 @@ Bananajour.setup! if !Bananajour.setup?
 Bananajour.check_git!
 Bananajour.check_git_config!
 
+parent_process_pid = Process.pid
 pids = []
-
-[&quot;INT&quot;, &quot;TERM&quot;, &quot;HUP&quot;].each do |sig|
-  Signal.trap sig do
-    pids.each{|pid| Process.kill &quot;TERM&quot;, pid rescue nil}
-    exit 0
+at_exit do 
+  if Process.pid == parent_process_pid
+    pids.each do |pid| 
+      Process.kill(&quot;TERM&quot;, pid) rescue nil
+      sleep 0.2
+    end
   end
 end
 </diff>
      <filename>bin/bananajour</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>11850f9421b7c44883f9bb705ae5b8f7ad5181d8</id>
    </parent>
  </parents>
  <author>
    <name>Tim Lucas</name>
    <email>t.lucas@toolmantim.com</email>
  </author>
  <url>http://github.com/toolmantim/bananajour/commit/3aecfe02a2262671a6cc322477dade720de5e8a7</url>
  <id>3aecfe02a2262671a6cc322477dade720de5e8a7</id>
  <committed-date>2009-11-09T04:13:54-08:00</committed-date>
  <authored-date>2009-11-09T04:13:54-08:00</authored-date>
  <message>Really make sure child processes die.</message>
  <tree>bc7049e2fcb24cf4119461495dd607c5fade7f2f</tree>
  <committer>
    <name>Tim Lucas</name>
    <email>t.lucas@toolmantim.com</email>
  </committer>
</commit>
