Navigation Menu

Skip to content

Commit

Permalink
droonga-engine: don't restart for unexpected exit
Browse files Browse the repository at this point in the history
  • Loading branch information
kou committed Apr 22, 2014
1 parent a88d3a0 commit 81128e7
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/droonga/engine/command/droonga_engine.rb
Expand Up @@ -136,7 +136,9 @@ def run(command_line_arguments)
end
while running
service_pid = run_service
Process.waitpid(service_pid)
_, status = Process.waitpid2(service_pid)
break if status.nil?
break unless status.success?
end

true
Expand Down

0 comments on commit 81128e7

Please sign in to comment.