Skip to content

Commit

Permalink
Merge pull request #1 from triton-inference-server/main
Browse files Browse the repository at this point in the history
Add error handling in case of AutocompleteStub Failure for DLIS-5819 …
  • Loading branch information
CGranger-sorenson authored May 13, 2024
2 parents 1e5f32f + 9d2c513 commit 7197508
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 7197508

Please sign in to comment.