ALSchwalm / transient

A wrapper for QEMU allowing the creation of virtual machines with shared folder, ssh, and disk creation support.
MIT License
104 stars 17 forks source link

Avoid leaving .part files in the backend (to the best of our ability) #65

Open ALSchwalm opened 4 years ago

ALSchwalm commented 4 years ago

It is generally impossible to completely ensure that no files are left behind when doing an image download, but we should at least try to clean up any partial file downloads that are around if we receive SIGINT.

ALSchwalm commented 4 years ago

This should really be a more general solution. We have lots of places where we generate intermediate files. We need some way to register a file to be cleaned up regardless of how we exit. Maybe using an atexit handler or something?