Skip to content

Commit

Permalink
IronyRuby doesn't support Kernel.fork
Browse files Browse the repository at this point in the history
  • Loading branch information
defunkt committed Jan 25, 2010
1 parent 386216f commit 95e760e
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions HISTORY.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
## 1.4.0 (2010-??-??)

* Fallback when unable to bind QUIT and USR1 for Windows and JRuby.
* Fallback when no `Kernel.fork` is provided (for IronRuby).

## 1.3.1 (2010-01-11)

Expand Down
7 changes: 6 additions & 1 deletion lib/resque/worker.rb
Original file line number Diff line number Diff line change
Expand Up @@ -189,7 +189,12 @@ def fork
return if @cant_fork

begin
Kernel.fork
# IronRuby doesn't support `Kernel.fork` yet
if Kernel.respond_to?(:fork)
Kernel.fork
else
raise NotImplementedError
end
rescue NotImplementedError
@cant_fork = true
nil
Expand Down

1 comment on commit 95e760e

@lucky
Copy link

@lucky lucky commented on 95e760e Feb 11, 2010

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

"IronyRuby"... how ironic.

Please sign in to comment.