mirror of
https://git.proxmox.com/git/proxmox
synced 2025-10-04 09:08:51 +00:00
![]() In general we want all open files to have set CLOEXEC since our reloading mechanism can basically fork at any moment and we don't want newer daemons to carry around old file descriptors, especially lock files. Since `make_tmp_file` is called by many things (e.g. open_file_locked, logrotate, rrd), set O_CLOEXEC with mkostemp. This fixes issues with leftover file descriptors e.g. tape backups not working because of lingering locks after a reload, or having deleted rrd files open. Signed-off-by: Dominik Csapak <d.csapak@proxmox.com> Reviewed-by: Fabian Grünbichler <f.gruenbichler@proxmox.com> |
||
---|---|---|
.. | ||
debian | ||
src | ||
tests | ||
Cargo.toml |