1
0
Fork 0

Implement some hacks

This commit is contained in:
Alex Kotov 2023-05-03 16:00:59 +04:00
parent 82ed4b93a8
commit 5ac20e4753
Signed by: kotovalexarian
GPG Key ID: 553C0EBBEB5D5F08
1 changed files with 5 additions and 0 deletions

View File

@ -41,6 +41,11 @@ ENV.each_key(&:freeze).each_value(&:freeze) # ENV itself can't be frozen
$ARGV&.each(&:freeze).freeze # $ARGV is nil sometimes
$LOAD_PATH.each(&:freeze).freeze
# Some hacks
module Puma
def self.forkable? = false
end
# Non-buffered output
$stdout.sync = true
$stderr.sync = true