Skip to content

Commit

Permalink
Rescue setpgrp
Browse files Browse the repository at this point in the history
  • Loading branch information
andyw8 committed Apr 24, 2024
1 parent fc1c8da commit b9b49be
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/ruby_lsp/ruby_lsp_rails/runner_client.rb
Original file line number Diff line number Diff line change
Expand Up @@ -46,6 +46,8 @@ def initialize
Process.setsid
rescue Errno::EPERM
# If we can't set the session ID, continue
rescue NotImplementedError
# setpgrp() may be unimplemented on some platforms
end

stdin, stdout, stderr, wait_thread = Open3.popen3(
Expand Down

0 comments on commit b9b49be

Please sign in to comment.