Skip to content

Commit 3c0d767

Browse files
committed
maint: upgrade usage of deprecated posix API functions
1 parent 98b4877 commit 3c0d767

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

libmamba/src/core/run.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ namespace mamba
199199
const std::vector<std::string>& command,
200200
LockFile proc_dir_lock [[maybe_unused]]
201201
)
202-
: location{ proc_dir() / fmt::format("{}.json", getpid()) }
202+
: location{ proc_dir() / fmt::format("{}.json", _getpid()) }
203203
{
204204
// Lock must be hold for the duraction of this constructor.
205205
if (is_file_locking_allowed())

libmamba/src/core/util.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -892,7 +892,7 @@ namespace mamba
892892
int ret = 0;
893893
if (m_fd > -1)
894894
{
895-
ret = close(m_fd);
895+
ret = _close(m_fd);
896896
m_fd = -1;
897897
}
898898
return ret;

0 commit comments

Comments
 (0)