If the parent process creates an anonymous pipe after the child one started up…

The newly-created pipe handles won’t be inherited to the child process.To test it out, I created two console applications,  PipeServer and PipeClient, using the following snippets

Test the code with VS 2017 + .NET Core 2.0; the result is as follows

Thus, if you want to set up any pipes AFTER the start-up of the children processes, you may consider the name pipes.

Published by

CXuesong

Leave a Reply

Your email address will not be published. Required fields are marked *

*