ghedo / pflask

:sake: Lightweight process containers for Linux
https://ghedo.github.io/pflask/
BSD 2-Clause "Simplified" License
200 stars 33 forks source link

Remove ephemeral directory after process exit #5

Closed gdm85 closed 9 years ago

gdm85 commented 9 years ago

This PR addresses left-behind empty directories in host /tmp.

The template is initialized before cloning, and I check for errors at removing the empty directory (could be still busy in an umount operation, or some process using it for some reason).

Sorry if code quality is not up-to-standards, I am pretty rusty in C/C++.

ghedo commented 9 years ago

Merged, thanks!