This commit is contained in:
Klaim (Joël Lamotte) 2025-07-07 04:44:28 +08:00 committed by GitHub
commit 791dc11c59
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -199,7 +199,7 @@ namespace mamba
const std::vector<std::string>& command,
LockFile proc_dir_lock [[maybe_unused]]
)
: location{ proc_dir() / fmt::format("{}.json", getpid()) }
: location{ proc_dir() / fmt::format("{}.json", _getpid()) }
{
// Lock must be hold for the duraction of this constructor.
if (is_file_locking_allowed())

View File

@ -892,7 +892,7 @@ namespace mamba
int ret = 0;
if (m_fd > -1)
{
ret = close(m_fd);
ret = _close(m_fd);
m_fd = -1;
}
return ret;