matadon/mizuno — Issue #19: Daemonization does not work on Windows
Author: larrywright
Created: 2012-02-20 21:07:04+00:00
State: open

The new daemonization functionality doesn't work on windows. Specifically the call to setuid fails (and presumably setgid, though it doesn't get that far).

```ruby
FFI::NotFoundError: Function 'setuid' not found in [msvcrt.dll]
attach_function at c:/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:154
each at org/jruby/RubyArray.java:1614
attach_function at c:/jruby/lib/ruby/site_ruby/shared/ffi/library.rb:150
Runner at c:/jruby/lib/ruby/gems/1.8/gems/mizuno-0.5.1/lib/mizuno/run
ner.rb:22
Mizuno at c:/jruby/lib/ruby/gems/1.8/gems/mizuno-0.5.1/lib/mizuno/run
ner.rb:17
(root) at c:/jruby/lib/ruby/gems/1.8/gems/mizuno-0.5.1/lib/mizuno/run
ner.rb:10
require at org/jruby/RubyKernel.java:1027
(root) at c:/jruby/lib/ruby/gems/1.8/gems/mizuno-0.5.1/lib/mizuno/run
ner.rb:7
load at org/jruby/RubyKernel.java:1052
(root) at c:\jruby\lib\ruby\gems\1.8\bin\mizuno:19

Would it be possible to not call setuid/setgid when running on Windows?