<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,7 +3,7 @@ require &quot;fileutils&quot;
 # Large portions of this were liberally stolen from the
 # 'simple-daemon' project at http://simple-daemon.rubyforge.org/
 module DaemonSpawn
-  VERSION = '0.1.0'
+  VERSION = '0.1.1'
 
   def self.usage(msg=nil) #:nodoc:
     print &quot;#{msg}, &quot; if msg
@@ -50,6 +50,10 @@ module DaemonSpawn
     if pid = daemon.pid
       FileUtils.rm(daemon.pid_file)
       Process.kill(&quot;TERM&quot;, pid)
+      begin
+        Process.wait(pid)
+      rescue Errno::ECHILD
+      end
     else
       puts &quot;Pid file not found. Is the daemon started?&quot;
       exit</diff>
      <filename>lib/daemon-spawn.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>09e8801776c3ec465192eb79a9331624e27f8b2c</id>
    </parent>
  </parents>
  <author>
    <name>Alex Vollmer</name>
    <email>alex@evri.com</email>
  </author>
  <url>http://github.com/alexvollmer/daemon-spawn/commit/7a41af2b71a2045db6a407c500b07812b320baa4</url>
  <id>7a41af2b71a2045db6a407c500b07812b320baa4</id>
  <committed-date>2009-02-09T18:10:46-08:00</committed-date>
  <authored-date>2009-02-09T18:10:46-08:00</authored-date>
  <message>Added a Process.wait call to make sure 'stop' calls don't return until kill is done.</message>
  <tree>c460bb9b1fa1a27c8e58ba9febd6b476006527fc</tree>
  <committer>
    <name>Alex Vollmer</name>
    <email>alex@evri.com</email>
  </committer>
</commit>
