Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

JRuby compatilibity fix: checking if the Sphinx process if alive

  • Loading branch information...
commit e5cc84fb51ec50a0cfa752225ff5f19223ac9b17 1 parent 4fe7c93
@lackac lackac authored pat committed
Showing with 2 additions and 2 deletions.
  1. +2 −2 lib/thinking_sphinx.rb
View
4 lib/thinking_sphinx.rb
@@ -159,8 +159,8 @@ def self.pid_active?(pid)
return true if microsoft?
begin
- Process.getpgid(pid.to_i)
- true
+ # In JRuby this returns -1 if the process doesn't exist
+ Process.getpgid(pid.to_i) != -1
rescue Exception => e
false
end
Please sign in to comment.
Something went wrong with that request. Please try again.