You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi!
I use your daemon_controller to start thinkin_sphinx plugin. I use this code http://michalkuklis.com/blog/ to start plugin.
I have error in daemon_controller.rb in method kill_daemon_with_signal.
"C:/Ruby/lib/ruby/gems/1.8/gems/daemon_controller-0.2.1/lib/daemon_controller.rb:362:in `kill'
: Invalid argument (Errno::EINVAL)"
I look at the daemon_controller.rb in method kill_daemon_with_signal.
" def kill_daemon_with_signal
pid = read_pid_file
if pid
Process.kill('SIGTERM', pid)
end
rescue Errno::ESRCH, Errno::ENOENT
end
"
But my(or all?) Windows didn't have 'SIGTERM' signal. I write this test program
"Signal.list.each { |name, i| puts "#{name} #{i}" }"
And it's write:
"SEGV 11
KILL 9
TERM 15
INT 2
FPE 8
ABRT 22
ILL 4
EXIT 0"
I change 'SIGTERM' to 'KILL' and it's(this moment) works, but i have following error:
"C:/Ruby/lib/ruby/gems/1.8/gems/daemon_controller-0.2.1/lib/daemon_controller.rb:330:in start_without_locking' : Daemon 'Sphinx search server' failed to start in time. (DaemonController::StartTimeout)" And I try change signal to 'TERM', but have same error "C:/Ruby/lib/ruby/gems/1.8/gems/daemon_controller-0.2.1/lib/daemon_controller.rb:362:inkill'
: Invalid argument (Errno::EINVAL)"
Please help. I think this is a bug.
The text was updated successfully, but these errors were encountered:
Hi!
I use your daemon_controller to start thinkin_sphinx plugin. I use this code http://michalkuklis.com/blog/ to start plugin.
I have error in daemon_controller.rb in method kill_daemon_with_signal.
"C:/Ruby/lib/ruby/gems/1.8/gems/daemon_controller-0.2.1/lib/daemon_controller.rb:362:in `kill'
: Invalid argument (Errno::EINVAL)"
I look at the daemon_controller.rb in method kill_daemon_with_signal.
" def kill_daemon_with_signal
pid = read_pid_file
if pid
Process.kill('SIGTERM', pid)
end
rescue Errno::ESRCH, Errno::ENOENT
end
"
But my(or all?) Windows didn't have 'SIGTERM' signal. I write this test program
"Signal.list.each { |name, i| puts "#{name} #{i}" }"
And it's write:
"SEGV 11
KILL 9
TERM 15
INT 2
FPE 8
ABRT 22
ILL 4
EXIT 0"
I change 'SIGTERM' to 'KILL' and it's(this moment) works, but i have following error:
"C:/Ruby/lib/ruby/gems/1.8/gems/daemon_controller-0.2.1/lib/daemon_controller.rb:330:in
start_without_locking' : Daemon 'Sphinx search server' failed to start in time. (DaemonController::StartTimeout)" And I try change signal to 'TERM', but have same error "C:/Ruby/lib/ruby/gems/1.8/gems/daemon_controller-0.2.1/lib/daemon_controller.rb:362:in
kill': Invalid argument (Errno::EINVAL)"
Please help. I think this is a bug.
The text was updated successfully, but these errors were encountered: