Plans for Kernel.fork (even a stub)?

Hi,

just curious as I’m going to patch an existing MRI lib around that and
willing to ensure IronRuby support is baked in.

What are the plans around Kernel.fork ?

It looks like the method is not currently available (I’m going to check
for
this method existence in my case)

Based on some code I read, I think Kernel.fork could just raise a
NonImplementedError.

what do you think ?

– Thibaut

I think we should match MRI’s error.

Just tested - it looks like MRI raises NotImplementedError on Windows
(just
like in the code I was reading expected it to).

Should I create an issue for this to get tracking ? (Nothing urgent in
my
case, I’ll patch the code to check Kernel.methods.include?(‘fork’))

– Thibaut

I think we should match MRI’s error.

JD

From: [email protected]
[mailto:[email protected]] On Behalf Of Thibaut
Barrère
Sent: Monday, January 25, 2010 9:05 AM
To: ironruby-core
Subject: [Ironruby-core] Plans for Kernel.fork (even a stub) ?

Hi,

just curious as I’m going to patch an existing MRI lib around that and
willing to ensure IronRuby support is baked in.

What are the plans around Kernel.fork ?

It looks like the method is not currently available (I’m going to check
for this method existence in my case)

Based on some code I read, I think Kernel.fork could just raise a
NonImplementedError.

what do you think ?

– Thibaut

I think we should match MRI’s error.

Just tested - it looks like MRI raises NotImplementedError on Windows (just
like in the code I was reading expected it to).

Meanwhile here is a patch that works in my situation:

http://gist.github.com/286052

I guess Mono would probably behave differently :slight_smile:

– Thibaut

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs