1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
Commit graph

3 commits

Author SHA1 Message Date
Étienne Barrié
7ca163d8c3 Also override Kernel#fork 2019-09-30 17:05:37 -04:00
Étienne Barrié
f223c795e8 Keep Object#fork private 2019-09-30 17:05:37 -04:00
Jean Boussier
78b9580e5f Introduce a callback for forked children
We hook into Kernel#fork and Process#fork, when they are invoked
we can trigger all the registered callbacks.

There is also a `check!` method that can be called to very cheaply
detect if the process was forked.
2019-09-30 12:04:59 +02:00