-
Notifications
You must be signed in to change notification settings - Fork 820
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
RavenDB-12319 spawn processes without handle inheritance to avoid getting HttpRequestException because of closed handle #8028
Conversation
…ting HttpRequestException because of closed handle
src/Sparrow/RavenProcess.cs
Outdated
|
||
var process = new RavenProcess(); | ||
if (process.StartWithCreateProcess(startInfo) == false) | ||
throw new InvalidOperationException(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Need error handling here.
src/Sparrow/RavenProcess.cs
Outdated
|
||
private unsafe bool StartWithCreateProcess(ProcessStartInfo startInfo) | ||
{ | ||
var commandLine = BuildCommandLine(startInfo.FileName, startInfo.Arguments); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
How much of this is Windows only?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All
@ayende I've compiled new System.Diagnostics.Process.dll (for Windows only) with InheritHandles option. |
@ayende I will merge this on Monday, after release |
This is still WIP, I want CI to start testing this