search for: daemon_alloc

Displaying 2 results from an estimated 2 matches for "daemon_alloc".

2005 May 14
4
Problems with custom service and webrick
Hi all, Windows XP Pro Ruby 1.8.2 I''m having a couple of problems with the following service. The first issue is that the code in service_start doesn''t seem to fire off. The second problem is that any attempt to do ''require "webrick"'' within webrick_daemon.rb causes the service to fail on start. Any ideas? # webrickctl.rb
2006 Dec 07
0
Fwd: win32-service problems with patch
...polling in a green thread for the event, but - // this really should not happen so here we go - rb_raise(cDaemonError,error); + // no service to step, no service handle, no ruby + // exceptions, just terminate thread + return 1; } return 0; } static VALUE daemon_allocate(VALUE klass){ - EventHookHash = rb_hash_new(); - - thread_group = rb_class_new_instance(0, 0, - rb_const_get(rb_cObject, rb_intern("ThreadGroup"))); return Data_Wrap_Struct(klass, 0, 0, 0); } +static VALUE +daemon_mainloop_protect(VALUE self) +{ + // Call service_mai...