[Backgroundrb-devel] Error when starting Backgroundrb

Geoff Garside ruby at geoffgarside.co.uk
Sun Apr 8 10:06:08 EDT 2007


On 7 Apr 2007, at 20:20, Christian Schlaefcke wrote:

> Hi Folks,
>
> I want to set up backgroundrb on my laptop to do some tests. But  
> when I
> run "scripts/background start" I get this error:
>
> ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/daemonize.rb: 
> 160:in
> `setsid': the setsid() function is unimplemented on this machine
> (NotImplementedError)
>     from
> ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/daemonize.rb: 
> 160:in
> `call_as_daemon'
>     from
> ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/ 
> application.rb:191:in
> `start_proc'
>     from
> ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/ 
> application.rb:227:in
> `start'
>     from
> ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/controller.rb: 
> 69:in
> `run'
>     from ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons.rb: 
> 182:in
> `run_proc'
>     from
> ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/cmdline.rb: 
> 105:in
> `call'
>     from
> ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons/cmdline.rb: 
> 105:in
> `catch_exceptions'
>     from ruby/lib/ruby/gems/1.8/gems/daemons-1.0.5/lib/daemons.rb: 
> 181:in
> `run_proc'
>     from
> Test/vendor/plugins/backgroundrb-0.2.1/server/lib/ 
> backgroundrb_server.rb:301:in
> `run'
>     from Test/vendor/plugins/backgroundrb-0.2.1/script/backgroundrb:31
>
> I had the fork-not-implemented-error before so I use "require
> 'win32/process'" on my WinXP Notebook. This "setsid is  
> unimplemented" is
> new and even google could not tell me much about it. Anybody here who
> experienced this error and could help with a workaround?
>
> Thanks & Regards,
>
> Christian
>
>
> <cschlaefcke.vcf>
> _______________________________________________
> Backgroundrb-devel mailing list
> Backgroundrb-devel at rubyforge.org
> http://rubyforge.org/mailman/listinfo/backgroundrb-devel

As far as I know `sesid` is a unix call which sets the session id of  
a "leader" process. All processes then spawned by that process belong  
to the same session. Think a unix shell and any programs it starts up.

I'm not sure what you need to do to get this work properly on windows  
but that might help you turn up something.

- Geoff



More information about the Backgroundrb-devel mailing list