Skip to content

Commit c341054

Browse files
committed
Remove Sping::SID
We don't support Ruby 1.9 anymore, so I think this entire file can go away
1 parent 647b8c3 commit c341054

File tree

4 files changed

+2
-45
lines changed

4 files changed

+2
-45
lines changed

lib/spring/env.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44
require "tmpdir"
55

66
require "spring/version"
7-
require "spring/sid"
87
require "spring/configuration"
98

109
module Spring

lib/spring/server.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,8 @@ def rails_env_for(args, default_rails_env)
8181
# This will cause it to be automatically killed once the session
8282
# ends (i.e. when the user closes their terminal).
8383
def set_pgid
84-
Process.setpgid(0, SID.pgid)
84+
pgid = Process.getpgid(Process.getsid)
85+
Process.setpgid(0, pgid)
8586
end
8687

8788
# Ignore SIGINT and SIGQUIT otherwise the user typing ^C or ^\ on the command line

lib/spring/sid.rb

Lines changed: 0 additions & 42 deletions
This file was deleted.

test/support/acceptance_test.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
require "io/wait"
22
require "timeout"
3-
require "spring/sid"
43
require "spring/client"
54
require "active_support/core_ext/string/strip"
65

0 commit comments

Comments
 (0)