[Groonga-commit] groonga/grntest at cc55a58 [master] Ignore kill error

アーカイブの一覧に戻る
Kouhei Sutou null+****@clear*****
Fri Nov 16 18:22:33 JST 2018


Kouhei Sutou	2018-11-16 18:22:33 +0900 (Fri, 16 Nov 2018)

  Revision: cc55a58f543bebe352788907c1bab2d80a8b8bb7
  https://github.com/groonga/grntest/commit/cc55a58f543bebe352788907c1bab2d80a8b8bb7

  Message:
    Ignore kill error

  Modified files:
    lib/grntest/test-runner.rb

  Modified: lib/grntest/test-runner.rb (+5 -1)
===================================================================
--- lib/grntest/test-runner.rb    2018-11-16 16:01:26 +0900 (8f978e0)
+++ lib/grntest/test-runner.rb    2018-11-16 18:22:33 +0900 (221c226)
@@ -386,7 +386,11 @@ call chdir("#{context.temporary_directory_path}")
         end
       ensure
         return if pid.nil?
-        Process.kill(:TERM, pid)
+        begin
+          Process.kill(:TERM, pid)
+        rescue SystemCallErrror
+          return
+        end
         wait_groonga_http_shutdown(pid_file_path)
         ensure_process_finished(pid)
       end
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.osdn.me/mailman/archives/groonga-commit/attachments/20181116/637077fc/attachment-0001.html>


More information about the Groonga-commit mailing list
アーカイブの一覧に戻る