Skip to content

Commit 8862501

Browse files
authored
Merge pull request #615 from rails/no-sid
Remove Sping::SID
2 parents 64d91a9 + c341054 commit 8862501

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
@@ -2,7 +2,6 @@
22
require "digest/md5"
33

44
require "spring/version"
5-
require "spring/sid"
65
require "spring/configuration"
76

87
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)