Skip to content

Commit d495fe1

Browse files
author
davik
committed
Fix typo in process.cc for windows
Signed-off-by: davik <davik@anyscale.com>
1 parent ca110cc commit d495fe1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ray/util/process.cc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,7 @@ Process::Process(pid_t pid) {
9191
}
9292
}
9393
} else {
94-
RAY_CHECK(pid == GetProcessId(reinterpret_cast<HANDLE>(fd)));
94+
RAY_CHECK(pid == GetProcessId(reinterpret_cast<HANDLE>(fd_)));
9595
}
9696
#else
9797
if (kill(pid, 0) == -1 && errno == ESRCH) {
@@ -438,7 +438,7 @@ int Process::Wait() const {
438438
if (pid_ >= 0) {
439439
std::error_code error;
440440
#ifdef _WIN32
441-
HANDLE handle = fd != -1 ? reinterpret_cast<HANDLE>(fd) : NULL;
441+
HANDLE handle = fd_ != -1 ? reinterpret_cast<HANDLE>(fd_) : NULL;
442442
DWORD exit_code = STILL_ACTIVE;
443443
if (WaitForSingleObject(handle, INFINITE) == WAIT_OBJECT_0 &&
444444
GetExitCodeProcess(handle, &exit_code)) {

0 commit comments

Comments
 (0)