Skip to content

Commit a5d2911

Browse files
authored
Merge pull request #623 from mvz/fix-freezes
Redirect STDERR to /dev/null during eager_preload
2 parents 184ecda + bacf4d6 commit a5d2911

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

lib/spring/application.rb

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,12 @@ def preload
127127
end
128128

129129
def eager_preload
130-
with_pty { preload }
130+
with_pty do
131+
# we can't see stderr and there could be issues when it's overflown
132+
# see https://github.com/rails/spring/issues/396
133+
STDERR.reopen("/dev/null")
134+
preload
135+
end
131136
end
132137

133138
def run

0 commit comments

Comments
 (0)