madelson
madelson
@Doraku good to know that the parent scopes the visibility. That covers the use-case 99% which should be fine for me. I think it would be nice to have a...
Also saw this come up with GetErrorAndOutputLines. I think one way this can happen is if the sub-process kicks off another process that inherits the std io streams and that...
Hi @Brice-xCIT . Glad you agree that this would be a good build. The problem I've run into with trying to fix this in a general way thus far is...
@Brice-xCIT sorry for missing your last question here. I believe that it does end in at least some cases, because windows will throw a broken pipe exception when we try...
Ideas for how we could get this to work: * One windows, use native methods GetCurrentThread and CancelSynchronousIo for sync IO (the only thing our pipes support currently). * One...
Thanks for the update @Brice-xCIT . Looking back at your original posted gist, wouldn't it always hang on [line 101](https://gist.github.com/Brice-xCIT/cd0449db814dfc7a17c17ede9582a38b#file-program-cs-L101) since the nested command will be waiting on its input...
Working sample of read cancellation (windows): ```C# void Main() { var path = @"C:\Users\mikea_000\Documents\Interests\CS\MedallionShell\SampleCommand\bin\Debug\net46\SampleCommand.exe"; var process = new Process { StartInfo = { FileName = path, RedirectStandardInput = true, RedirectStandardOutput...
In practice, different implementations will behave differently in the scenario where the max counts vary. For example, with a Redis semaphore, callers are effectively waiting in a queue until they...
@my522cn a few thoughts: 1. Can you post code which shows how you set the values for `path` and `args`? 2. Rather than awaiting the original command's task, you should...
Probably args should be an empty array (no arguments) unless you mean to pass the empty string as an argument. Did you try steps 2 and 3?