diff options
author | schneems <richard.schneeman@gmail.com> | 2016-06-08 15:52:02 -0500 |
---|---|---|
committer | schneems <richard.schneeman@gmail.com> | 2016-06-08 15:52:02 -0500 |
commit | 7d733b9f0f847d67d8759421f6820ebc57567647 (patch) | |
tree | 078ca210ac525ef76e2b39c3662c01074074d93b /railties/lib/rails/generators/named_base.rb | |
parent | a8f29f6455c303bbd321af248a730ca8b41f2f27 (diff) | |
download | rails-7d733b9f0f847d67d8759421f6820ebc57567647.tar.gz rails-7d733b9f0f847d67d8759421f6820ebc57567647.tar.bz2 rails-7d733b9f0f847d67d8759421f6820ebc57567647.zip |
Test how evented file checker handles forks
Pretty proud of this. We are testing distributed processes synchronized via pipes which makes it deterministic. Pretty cool.
We boot a listener in the parent process we then fork. Before we touch the file we verify the fork is booted using pipes. Then the parent process will touch the file while the fork waits on a pipe. Once the parent process signals that the file has been touched we continue inside of the fork.
Diffstat (limited to 'railties/lib/rails/generators/named_base.rb')
0 files changed, 0 insertions, 0 deletions