Skip to content

Commit e16aad3

Browse files
Include pid in names of temporary files (#290)
1 parent 4cd4d85 commit e16aad3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/billy/ssl/certificate_helpers.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ def serial
2727
# and ensure the location is safely created. Pass
2828
# back the resulting path.
2929
def write_file(name, contents)
30-
path = File.join(Billy.config.certs_path, name)
30+
path = File.join(Billy.config.certs_path, "#{Process.pid}-#{name}")
3131
FileUtils.mkdir_p(File.dirname(path))
3232
File.write(path, contents)
3333
path

0 commit comments

Comments
 (0)