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.

Leave a Reply

Your email address will not be published.


This site uses Akismet to reduce spam. Learn how your comment data is processed.

Content is available under CC BY-SA 3.0 unless otherwise noted.