Skip to content

Commit 1b045fb

Browse files
committed
Merge pull request #443 from hanazuki/tmp-uid
Make the temporary directory path contain uid of the process
2 parents 91294f0 + 9bdba37 commit 1b045fb

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## Next Release
2+
3+
* Make the temporary directory path used by spring contain the UID of the process
4+
so that spring can work on machines where multiple users share a single $TMPDIR.
5+
16
## 1.4.3
27

38
* Support new binstub format and --remove option

lib/spring/env.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def version
3333
end
3434

3535
def tmp_path
36-
path = Pathname.new(File.join(ENV['XDG_RUNTIME_DIR'] || Dir.tmpdir, "spring"))
36+
path = Pathname.new(File.join(ENV['XDG_RUNTIME_DIR'] || Dir.tmpdir, "spring-#{Process.uid}"))
3737
FileUtils.mkdir_p(path) unless path.exist?
3838
path
3939
end

0 commit comments

Comments
 (0)