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
…356)

* DLIS-5819
* Guard WaitForStubProcess in case of failed auto-complete-config
  • Loading branch information
indrajit96 authored May 9, 2024
1 parent b7a0690 commit 9d2c513
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
@@ -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
}

0 comments on commit 9d2c513

Please sign in to comment.