Skip to content

Commit

Permalink
Add error handling in case of AutocompleteStub Failure for DLIS-5819 …
Browse files Browse the repository at this point in the history
  • Loading branch information
mc-nv committed May 10, 2024
1 parent b7a0690 commit c6132f6
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/stub_launcher.cc
Original file line number Diff line number Diff line change
Expand Up @@ -787,7 +787,11 @@ StubLauncher::WaitForStubProcess()
CloseHandle(stub_pid_.hThread);
#else
int status;
waitpid(stub_pid_, &status, 0);
if (stub_pid_ != 0) {
// Added this check to ensure server doesn't hang waiting after stub
// process has already be killed and cannot be waited on
waitpid(stub_pid_, &status, 0);
}
#endif
}

Expand Down

0 comments on commit c6132f6

Please sign in to comment.