Created
November 2, 2023 02:56
-
-
Save matt17r/f68dc992044ecb410cb7109a6932aac1 to your computer and use it in GitHub Desktop.
Options to prevent overly long socket length https://github.com/ruby/debug/issues/982
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# shorten user to max 20 characters | |
def self.create_unix_domain_socket_name_prefix(base_dir = unix_domain_socket_dir) | |
user = ENV['USER'] || 'UnknownUser' | |
user.slice![0-19] | |
File.join(base_dir, "ruby-debug-#{user}") | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment