Skip to content

Commit

Permalink
Merge pull request #623 from mvz/fix-freezes
Browse files Browse the repository at this point in the history
Redirect STDERR to /dev/null during eager_preload
  • Loading branch information
rafaelfranca authored Sep 13, 2022
2 parents cbc345c + 0340a9a commit 844e31b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/spring/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,7 +127,12 @@ def preload
end

def eager_preload
with_pty { preload }
with_pty do
# we can't see stderr and there could be issues when it's overflown
# see https://github.com/rails/spring/issues/396
STDERR.reopen("/dev/null")
preload
end
end

def run
Expand Down

0 comments on commit 844e31b

Please sign in to comment.