Refactor to use a block in fork
Revert e4a845fad2d13943ca42b47a0d4554d24b700d80 according to https://github.com/resque/resque/pull/1032
Avoid unregister when exiting from children and run_at_exit_hooks == true
Identation and trailing whitespace
Merge pull request #1032 from magec/bugfix/children_not_exiting

Refactor to use a block in fork