Forum: IronRuby Plans for Kernel.fork (even a stub) ?

Posted by Thibaut Barrère (thbar)
on 2010-01-25 18:09
(Received via mailing list)
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
Posted by Jim Deville (Guest)
on 2010-01-25 18:25
(Received via mailing list)
I think we should match MRI's error.

JD

From: ironruby-core-bounces@rubyforge.org 
[mailto:ironruby-core-bounces@rubyforge.org] 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
Posted by Thibaut Barrère (thbar)
on 2010-01-25 18:29
(Received via mailing list)
>
> 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
Posted by Thibaut Barrère (thbar)
on 2010-01-25 18:39
(Received via mailing list)
>
> 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 :)

-- Thibaut
Please log in before posting. Registration is free and takes only a minute.
Existing account (Switch to SSL-encrypted connection)
NEW: Do you have a Google/GoogleMail or Yahoo account? No registration required!
Log in with Google account | Log in with Yahoo account
No account? Register here.