Skip to content

Commit

Permalink
Remove initialized file before sandbox cleanup.
Browse files Browse the repository at this point in the history
  • Loading branch information
hermanzdosilovic committed Apr 7, 2020
1 parent bca81a7 commit 514aec5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/jobs/isolate_job.rb
Original file line number Diff line number Diff line change
Expand Up @@ -252,6 +252,9 @@ def verify
def cleanup(raise_exception = true)
fix_permissions
`sudo rm -rf #{boxdir}/* #{tmpdir}/*`
[stdin_file, stdout_file, stderr_file, metadata_file].each do |f|
`sudo rm -rf #{f}`
end
`isolate #{cgroups} -b #{box_id} --cleanup`
raise "Cleanup of sandbox #{box_id} failed." if raise_exception && Dir.exists?(workdir)
end
Expand Down

0 comments on commit 514aec5

Please sign in to comment.