diff --git a/src/ray/util/process.cc b/src/ray/util/process.cc index 82be9ba34334..b3a89acde266 100644 --- a/src/ray/util/process.cc +++ b/src/ray/util/process.cc @@ -556,8 +556,7 @@ typedef NTSTATUS WINAPI NtQueryInformationProcess_t(HANDLE ProcessHandle, ULONG ProcessInformationLength, ULONG *ReturnLength); -static std::atomic NtQueryInformationProcess_ = - ATOMIC_VAR_INIT(NULL); +static std::atomic NtQueryInformationProcess_ = NULL; pid_t GetParentPID() { NtQueryInformationProcess_t *NtQueryInformationProcess = NtQueryInformationProcess_;