pass unlink_now flag to close for Tempfile instances
git-svn-id: file:///home/svn/framework3/trunk@8697 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
d86575701d
commit
9148068acc
|
@ -966,8 +966,9 @@ class Db
|
|||
# print_status("NMAP: #{line.strip}")
|
||||
# end
|
||||
|
||||
::File.unlink(fo.path)
|
||||
fo.close(true)
|
||||
framework.db.import_nmap_xml_file(fd.path)
|
||||
fd.close(true)
|
||||
end
|
||||
|
||||
#
|
||||
|
|
|
@ -60,8 +60,7 @@ class Nasm
|
|||
|
||||
# Remove temporary files
|
||||
File.unlink(opath)
|
||||
File.unlink(tpath)
|
||||
tmp.close
|
||||
tmp.close(true)
|
||||
|
||||
rv
|
||||
end
|
||||
|
@ -90,7 +89,7 @@ class Nasm
|
|||
p.close
|
||||
end
|
||||
|
||||
tmp.close
|
||||
tmp.close(true)
|
||||
|
||||
o
|
||||
end
|
||||
|
|
|
@ -211,7 +211,7 @@ class Console::CommandDispatcher::Stdapi::Fs
|
|||
end
|
||||
|
||||
# Get rid of that pesky temporary file
|
||||
::File.unlink(temp_path)
|
||||
temp_path.close(true)
|
||||
end
|
||||
|
||||
#
|
||||
|
|
Loading…
Reference in New Issue