mirror of
https://github.com/aspnet/JavaScriptServices.git
synced 2025-12-23 01:58:29 +00:00
Child Node processes poll and exit when parent has exited. Fixes #270
This commit is contained in:
@@ -114,9 +114,10 @@ If you haven't yet installed node-inspector, you can do so as follows:
|
||||
debuggingArgs = string.Empty;
|
||||
}
|
||||
|
||||
var thisProcessPid = Process.GetCurrentProcess().Id;
|
||||
var startInfo = new ProcessStartInfo("node")
|
||||
{
|
||||
Arguments = debuggingArgs + "\"" + entryPointFilename + "\" " + (commandLineArguments ?? string.Empty),
|
||||
Arguments = $"{debuggingArgs}\"{entryPointFilename}\" --parentPid {thisProcessPid} {commandLineArguments ?? string.Empty}",
|
||||
UseShellExecute = false,
|
||||
RedirectStandardInput = true,
|
||||
RedirectStandardOutput = true,
|
||||
|
||||
Reference in New Issue
Block a user