{"action":"created","issue":{"url":"https://api.github.com/repos/aspnet/dnx/issues/2673","labels_url":"https://api.github.com/repos/aspnet/dnx/issues/2673/labels{/name}","comments_url":"https://api.github.com/repos/aspnet/dnx/issues/2673/comments","events_url":"https://api.github.com/repos/aspnet/dnx/issues/2673/events","html_url":"https://github.com/aspnet/dnx/issues/2673","id":105879430,"number":2673,"title":"Redirect StandartOutput isn't work on Mac.","user":{"login":"mfilippov","id":927432,"avatar_url":"https://avatars.githubusercontent.com/u/927432?v=3","gravatar_id":"","url":"https://api.github.com/users/mfilippov","html_url":"https://github.com/mfilippov","followers_url":"https://api.github.com/users/mfilippov/followers","following_url":"https://api.github.com/users/mfilippov/following{/other_user}","gists_url":"https://api.github.com/users/mfilippov/gists{/gist_id}","starred_url":"https://api.github.com/users/mfilippov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfilippov/subscriptions","organizations_url":"https://api.github.com/users/mfilippov/orgs","repos_url":"https://api.github.com/users/mfilippov/repos","events_url":"https://api.github.com/users/mfilippov/events{/privacy}","received_events_url":"https://api.github.com/users/mfilippov/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-09-10T19:16:08Z","updated_at":"2015-09-10T19:48:19Z","closed_at":"2015-09-10T19:48:18Z","body":"I have test program:\r\n```\r\n        public void Main(string[] args)\r\n        {\r\n            var proc = new Process {StartInfo = new ProcessStartInfo(\"/bin/ls\")};\r\n            proc.StartInfo.RedirectStandardOutput = true;\r\n            \r\n            proc.Start();\r\n            var rdr = proc.StandardOutput;\r\n            proc.WaitForExit(5000);\r\n            Console.WriteLine(\"OUT:\");\r\n            Console.WriteLine(rdr.ReadToEnd());\r\n            Console.WriteLine(\"OK\");\r\n            Console.Read();\r\n        }\r\n```\r\nWith dependency: \"System.Diagnostics.Process\": \"4.0.0-beta-23109\",\r\n$dnvm list\r\n```\r\nActive Version              Runtime Architecture OperatingSystem Alias\r\n------ -------              ------- ------------ --------------- -----\r\n  *    1.0.0-beta7          coreclr x64          darwin          default\r\n```\r\nI got error:\r\n$ dmx run\r\n\r\n```\r\nSystem.IO.IOException: Broken pipe\r\n   at System.IO.UnixFileStream.SysCall[TArg1,TArg2](Func`4 sysCall, TArg1 arg1, TArg2 arg2, Boolean throwOnError)\r\n   at System.IO.UnixFileStream.WriteCore(Byte[] array, Int32 offset, Int32 count)\r\n   at System.IO.UnixFileStream.FlushWriteBuffer()\r\n   at System.IO.UnixFileStream.Flush(Boolean flushToDisk)\r\n   at System.Diagnostics.Process.StartCore(ProcessStartInfo startInfo)\r\n   at DnxDemo.Program.Main(String[] args)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)\r\n   at Microsoft.Dnx.ApplicationHost.Program.ExecuteMain(DefaultHost host, String applicationName, String[] args)\r\n   at Microsoft.Dnx.ApplicationHost.Program.Main(String[] args)\r\n--- End of stack trace from previous location where exception was thrown ---\r\n   at System.Runtime.ExceptionServices.ExceptionDispatchInfo.Throw()\r\n   at Microsoft.Dnx.Runtime.Common.EntryPointExecutor.Execute(Assembly assembly, String[] args, IServiceProvider serviceProvider)\r\n   at Microsoft.Dnx.Host.Bootstrapper.RunAsync(List`1 args, IRuntimeEnvironment env, FrameworkName targetFramework)\r\n   at Microsoft.Dnx.Host.RuntimeBootstrapper.ExecuteAsync(String[] args, FrameworkName targetFramework)\r\n   at Microsoft.Dnx.Host.RuntimeBootstrapper.Execute(String[] args, FrameworkName targetFramework)\r\n\r\nUnhandled Exception: System.IO.IOException: Broken pipe\r\n   at System.IO.UnixFileStream.SysCall[TArg1,TArg2](Func`4 sysCall, TArg1 arg1, TArg2 arg2, Boolean throwOnError)\r\n   at System.IO.UnixFileStream.WriteCore(Byte[] array, Int32 offset, Int32 count)\r\n   at System.IO.UnixFileStream.FlushWriteBuffer()\r\n   at System.IO.UnixFileStream.Dispose(Boolean disposing)\r\n   at System.IO.UnixFileStream.Finalize()\r\nlibc++abi.dylib: terminating with uncaught exception of type PAL_SEHException\r\nAbort trap: 6\r\n```"},"comment":{"url":"https://api.github.com/repos/aspnet/dnx/issues/comments/139360133","html_url":"https://github.com/aspnet/dnx/issues/2673#issuecomment-139360133","issue_url":"https://api.github.com/repos/aspnet/dnx/issues/2673","id":139360133,"user":{"login":"mfilippov","id":927432,"avatar_url":"https://avatars.githubusercontent.com/u/927432?v=3","gravatar_id":"","url":"https://api.github.com/users/mfilippov","html_url":"https://github.com/mfilippov","followers_url":"https://api.github.com/users/mfilippov/followers","following_url":"https://api.github.com/users/mfilippov/following{/other_user}","gists_url":"https://api.github.com/users/mfilippov/gists{/gist_id}","starred_url":"https://api.github.com/users/mfilippov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/mfilippov/subscriptions","organizations_url":"https://api.github.com/users/mfilippov/orgs","repos_url":"https://api.github.com/users/mfilippov/repos","events_url":"https://api.github.com/users/mfilippov/events{/privacy}","received_events_url":"https://api.github.com/users/mfilippov/received_events","type":"User","site_admin":false},"created_at":"2015-09-10T19:48:18Z","updated_at":"2015-09-10T19:48:18Z","body":"Ok I move it issue in coreclr."}}