Displaying 1 result from an estimated 1 matches for "dead_service".
2006 May 22
9
win32/service... still with problems.
...ssible to solve.
Attached is the simplest service script I could do with ruby, which
depends on win32/service.
I found that doing anything complex in service_stop (killing threads,
doing file handling, even sleeping for 0.25 seconds). crash the
service with backtraces (of the service) like this:
dead_service.rb:119:in `service_main'': uninitialized constant RUNNING
(NameError)
from U:/Programming/Sources/ruby/try/dead_service.rb:131
Just commenting the sleep command solves that problem, but leaves
other issues there... like the impossible task of killing running
threads (from a ThreadGroup, a...