This writes large files to /tmp unoverridably (apparenlty std::tmpfile() ignores the TMPDIR environment variable, unlike std::filesystem_temp_directory_path.
This can lead to out-of-disk conditions, such as #280.
It is also confusing, especially for programs where --tempDir is given, that then another temp directory is additionally used.
Finally, these cacheFiles are never close()d so they leak file descriptors all the way to the end of the process.
In
https://github.com/mkazhdan/PoissonRecon/blob/d4e87157cf9b2152cd6a46886c8d36bda4acba85/Src/PoissonRecon.client.inl#L163
std::tmpfile
is used.This writes large files to
/tmp
unoverridably (apparenltystd::tmpfile()
ignores theTMPDIR
environment variable, unlikestd::filesystem_temp_directory_path
. This can lead to out-of-disk conditions, such as #280.It is also confusing, especially for programs where
--tempDir
is given, that then another temp directory is additionally used.Finally, these
cacheFiles
are neverclose()
d so they leak file descriptors all the way to the end of the process.