summaryrefslogtreecommitdiff
path: root/lib/drb/unix.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/drb/unix.rb')
-rw-r--r--lib/drb/unix.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/drb/unix.rb b/lib/drb/unix.rb
index f9a2f75..6c6b703 100644
--- a/lib/drb/unix.rb
+++ b/lib/drb/unix.rb
@@ -1,5 +1,6 @@
require 'socket'
require 'drb/drb'
+require 'tmpdir'
module DRb
@@ -52,8 +53,7 @@ module DRb
Max_try = 10
private
def self.temp_server
- tmpdir = ENV['TMPDIR'] || ENV['TMP'] || ENV['TEMP'] || '/tmp'
- tmpdir = '/tmp' if $SAFE > 0 and tmpdir.tainted?
+ tmpdir = Dir::TMPDIR
n = 0
while true
begin