<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,4 +1,5 @@
-== ? release
+== 1.2.2 I Find Your Lack of Sauce Disturbing release
+ * Fix force kill under 1.9 [Alexey Chebotar]
  * Fix regression when --only option is used w/ --socket.
  * Add process name 'tag' functionality. Easier to distinguish thin daemons 
    from eachother in process listing [ctcherry]</diff>
      <filename>CHANGELOG</filename>
    </modified>
    <modified>
      <diff>@@ -108,16 +108,14 @@ module Thin
       
       # Send a +signal+ to the process which PID is stored in +pid_file+.
       def send_signal(signal, pid_file, timeout=60)
-        if File.file?(pid_file) &amp;&amp; pid = File.read(pid_file)
-          pid = pid.to_i
+        if pid = read_pid_file(pid_file)
           Logging.log &quot;Sending #{signal} signal to process #{pid} ... &quot;
           Process.kill(signal, pid)
           Timeout.timeout(timeout) do
             sleep 0.1 while Process.running?(pid)
           end
-          Logging.log &quot;&quot;
         else
-          puts &quot;Can't stop process, no PID found in #{pid_file}&quot;
+          Logging.log &quot;Can't stop process, no PID found in #{pid_file}&quot;
         end
       rescue Timeout::Error
         Logging.log &quot;Timeout!&quot;
@@ -130,8 +128,21 @@ module Thin
       end
       
       def force_kill(pid_file)
-        Process.kill(&quot;KILL&quot;, File.read(pid_file))      rescue nil
-        File.delete(pid_file) if File.exist?(pid_file) rescue nil
+        if pid = read_pid_file(pid_file)
+          Logging.log &quot;Sending KILL signal to process #{pid} ... &quot;
+          Process.kill(&quot;KILL&quot;, pid)
+          File.delete(pid_file) if File.exist?(pid_file)
+        else
+          Logging.log &quot;Can't stop process, no PID found in #{pid_file}&quot;
+        end
+      end
+      
+      def read_pid_file(file)
+        if File.file?(file) &amp;&amp; pid = File.read(file)
+          pid.to_i
+        else
+          nil
+        end
       end
     end
     </diff>
      <filename>lib/thin/daemonizing.rb</filename>
    </modified>
    <modified>
      <diff>@@ -6,11 +6,11 @@ module Thin
   module VERSION #:nodoc:
     MAJOR    = 1
     MINOR    = 2
-    TINY     = 1
+    TINY     = 2
     
     STRING   = [MAJOR, MINOR, TINY].join('.')
     
-    CODENAME = &quot;Asynctilicious Ultra Supreme&quot;.freeze
+    CODENAME = &quot;I Find Your Lack of Sauce Disturbing&quot;.freeze
     
     RACK     = [1, 0].freeze # Rack protocol version
   end</diff>
      <filename>lib/thin/version.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>95a060a8898a44bf038c4222eb072c554738d40d</id>
    </parent>
  </parents>
  <author>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </author>
  <url>http://github.com/macournoyer/thin/commit/b1908c0c38e4b7b253975492abc463cddf631dde</url>
  <id>b1908c0c38e4b7b253975492abc463cddf631dde</id>
  <committed-date>2009-05-21T13:24:06-07:00</committed-date>
  <authored-date>2009-05-21T13:24:06-07:00</authored-date>
  <message>Fix force kill under 1.9 and name version [#92 state:resolved]</message>
  <tree>1e7f0225fc673fa6646f9dc1f570e245e2e42722</tree>
  <committer>
    <name>macournoyer</name>
    <email>macournoyer@gmail.com</email>
  </committer>
</commit>
