[Groonga-commit] groonga/groonga-query-log at d1fa0cc [master] Remove needless fork

Back to archive index

Kouhei Sutou null+****@clear*****
Fri Sep 4 13:30:36 JST 2015


Kouhei Sutou	2015-09-04 13:30:36 +0900 (Fri, 04 Sep 2015)

  New Revision: d1fa0ccf412dc484eb0b3e83bfbbe689ad3038f5
  https://github.com/groonga/groonga-query-log/commit/d1fa0ccf412dc484eb0b3e83bfbbe689ad3038f5

  Message:
    Remove needless fork
    
    It's for supporting Windows.

  Modified files:
    lib/groonga/query-log/command/run-regression-test.rb

  Modified: lib/groonga/query-log/command/run-regression-test.rb (+2 -7)
===================================================================
--- lib/groonga/query-log/command/run-regression-test.rb    2015-09-04 13:28:28 +0900 (4123195)
+++ lib/groonga/query-log/command/run-regression-test.rb    2015-09-04 13:30:36 +0900 (739839d)
@@ -338,15 +338,10 @@ module Groonga
               else
                 puts("Running test against query log...: #{query_log_path}")
               end
-              pid = fork do
-                verify_server(log_path, query_log_path)
-                exit!
-              end
               begin
-                Process.waitpid(pid)
+                verify_server(log_path, query_log_path)
               rescue Interrupt
-                Process.kill(:TERM, pid)
-                Process.waitpid(pid)
+                puts("Interrupt: #{query_log_path}")
               end
             end
 
-------------- next part --------------
HTML����������������������������...
Download 



More information about the Groonga-commit mailing list
Back to archive index