# Plans for Kernel.fork (even a stub)?

**URL:** <https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255>\
**Category:** IronRuby\
**Created:** [January 25, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255 "2010-01-25T18:09:56Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [January 25, 2010, 6:09pm UTC](https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255/1 "2010-01-25T18:09:56Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [January 25, 2010, 6:29pm UTC](https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255/2 "2010-01-25T18:29:51Z")

</div>

> 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

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [January 25, 2010, 6:25pm UTC](https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255/3 "2010-01-25T18:25:09Z")

</div>

I think we should match MRI’s error.

JD

From: removed\_email\_address@domain.invalid  
[[mailto:removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)] 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

---

<div class="post-metadata">

**Author:** ![thbar](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/eb8c5e/32.png) [@thbar](https://www.ruby-forum.com/u/thbar)\
**Post date:** [January 25, 2010, 6:39pm UTC](https://www.ruby-forum.com/t/plans-for-kernel-fork-even-a-stub/182255/4 "2010-01-25T18:39:48Z")

</div>

> 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:

> <https://gist.github.com/thbar/286052>

I guess Mono would probably behave differently 🙂

– Thibaut
