[Groonga-commit] droonga/droonga-engine at 884247c [master] Save PID file correctly after the directory is created

Back to archive index

YUKI Hiroshi null+****@clear*****
Fri Jul 18 18:10:54 JST 2014


YUKI Hiroshi	2014-07-18 18:10:54 +0900 (Fri, 18 Jul 2014)

  New Revision: 884247c09d8d123e2ea86c3a234ca68525d65dec
  https://github.com/droonga/droonga-engine/commit/884247c09d8d123e2ea86c3a234ca68525d65dec

  Message:
    Save PID file correctly after the directory is created

  Modified files:
    lib/droonga/command/serf_event_handler.rb

  Modified: lib/droonga/command/serf_event_handler.rb (+1 -0)
===================================================================
--- lib/droonga/command/serf_event_handler.rb    2014-07-18 18:05:49 +0900 (279b921)
+++ lib/droonga/command/serf_event_handler.rb    2014-07-18 18:10:54 +0900 (eb868c0)
@@ -190,6 +190,7 @@ module Droonga
         ]
         pid = spawn(env, *publisher_command_line)
         Process.detach(pid)
+        sleep(1) # wait until the directory is published
 
         published_dir = Path.published(port)
         pid_file = published_dir + ".pid"
-------------- next part --------------
HTML����������������������������...
下載 



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