noreply at rubyforge.org
2007-Aug-07 19:17 UTC
[Win32utils-devel] [ win32utils-Bugs-12881 ] Cannot wait on Process - service_daemon/service_main
Bugs item #12881, was opened at 2007-08-07 19:17 You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=12881&group_id=85 Category: win32-service Group: None Status: Open Resolution: None Priority: 3 Submitted By: John Leake (ozwaldtwistle) Assigned to: Nobody (None) Summary: Cannot wait on Process - service_daemon/service_main Initial Comment: First of all a warm thank you to all contributors of this excellent library. Windows XP Pro SP2 Ruby 1.8.6 (2007-03-13 patchlevel 0) [i386-mswin32] Service 0.5.2 Process 0.5.3 I am using code based on the examples tdaemon.rb and tdaemon_ctl.rb Within tdaemon.rb/service_main() I launch an exe using Process.create and then use Process.waitpid2(process_id) to catch it if it crashes and then restart it. This works fine but when I call service_stop to kill the process it the call blocks until I kill the exe externally. Any suggestions ? ---------------------------------------------------------------------- You can respond by visiting: http://rubyforge.org/tracker/?func=detail&atid=411&aid=12881&group_id=85
Apparently Analagous Threads
- The win32-service patch is committed - and now, some questions
- Win32 service and blocking code in service_main
- Fwd: [win32-service] win32 daemon error - Service_Main thread exited abnormally (#4)
- Fwd: win32-service problems with patch
- Service.start arguments failing or causing segfault