{"action":"created","comment":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/comments/26685159","id":26685159,"diff_hunk":"@@ -482,6 +482,11 @@ public ProcessStartInfo StartInfo\n             {\n                 if (_startInfo == null)\n                 {\n+                    if (Associated && Process.GetCurrentProcessId() != Id)","path":"src/System.Diagnostics.Process/src/System/Diagnostics/Process.cs","position":4,"original_position":4,"commit_id":"612c2c732de4cf999768f4584511950485035c9c","original_commit_id":"612c2c732de4cf999768f4584511950485035c9c","user":{"login":"heXelium","id":3466627,"avatar_url":"https://avatars.githubusercontent.com/u/3466627?v=3","gravatar_id":"","url":"https://api.github.com/users/heXelium","html_url":"https://github.com/heXelium","followers_url":"https://api.github.com/users/heXelium/followers","following_url":"https://api.github.com/users/heXelium/following{/other_user}","gists_url":"https://api.github.com/users/heXelium/gists{/gist_id}","starred_url":"https://api.github.com/users/heXelium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heXelium/subscriptions","organizations_url":"https://api.github.com/users/heXelium/orgs","repos_url":"https://api.github.com/users/heXelium/repos","events_url":"https://api.github.com/users/heXelium/events{/privacy}","received_events_url":"https://api.github.com/users/heXelium/received_events","type":"User","site_admin":false},"body":"You're right that environment variables is the only one thing that is have some useful meaning. So there no too much sense in returning this object. Some of the buggy information can be retrieved and fixed for example Arguments. What do you suggest also throw same exception for current process?\r\n\r\nPlease correct me if I wrong but does environment variables can be changed for running process. I found following on MSDN:\r\n> Altering the environment variables of a child process during process creation is the only way one process can directly change the environment variables of another process. A process can never directly change the environment variables of another process that is not a child of that process.","created_at":"2015-03-18T17:18:24Z","updated_at":"2015-03-18T17:18:24Z","html_url":"https://github.com/dotnet/corefx/pull/1167#discussion_r26685159","pull_request_url":"https://api.github.com/repos/dotnet/corefx/pulls/1167","_links":{"self":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/comments/26685159"},"html":{"href":"https://github.com/dotnet/corefx/pull/1167#discussion_r26685159"},"pull_request":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1167"}}},"pull_request":{"url":"https://api.github.com/repos/dotnet/corefx/pulls/1167","id":31445984,"html_url":"https://github.com/dotnet/corefx/pull/1167","diff_url":"https://github.com/dotnet/corefx/pull/1167.diff","patch_url":"https://github.com/dotnet/corefx/pull/1167.patch","issue_url":"https://api.github.com/repos/dotnet/corefx/issues/1167","number":1167,"state":"open","locked":false,"title":"Fix issue #1100. StartInfo may return incorrect information for *running* processes.","user":{"login":"heXelium","id":3466627,"avatar_url":"https://avatars.githubusercontent.com/u/3466627?v=3","gravatar_id":"","url":"https://api.github.com/users/heXelium","html_url":"https://github.com/heXelium","followers_url":"https://api.github.com/users/heXelium/followers","following_url":"https://api.github.com/users/heXelium/following{/other_user}","gists_url":"https://api.github.com/users/heXelium/gists{/gist_id}","starred_url":"https://api.github.com/users/heXelium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heXelium/subscriptions","organizations_url":"https://api.github.com/users/heXelium/orgs","repos_url":"https://api.github.com/users/heXelium/repos","events_url":"https://api.github.com/users/heXelium/events{/privacy}","received_events_url":"https://api.github.com/users/heXelium/received_events","type":"User","site_admin":false},"body":"Fix issue #1100. Implemented throwing exception mechanism in a way as @davkean  suggests in his comment to this task: \r\n> My proposal in this case, is to throw InvalidOperationException (with a good error message) when accessing the Process.StartInfo for Processes that you didn't start yourself. This will prevent people being confused by this behavior.","created_at":"2015-03-18T16:26:53Z","updated_at":"2015-03-18T17:18:24Z","closed_at":null,"merged_at":null,"merge_commit_sha":"758a17f503607b4f00360da5e9d08852dfe85146","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/dotnet/corefx/pulls/1167/commits","review_comments_url":"https://api.github.com/repos/dotnet/corefx/pulls/1167/comments","review_comment_url":"https://api.github.com/repos/dotnet/corefx/pulls/comments{/number}","comments_url":"https://api.github.com/repos/dotnet/corefx/issues/1167/comments","statuses_url":"https://api.github.com/repos/dotnet/corefx/statuses/612c2c732de4cf999768f4584511950485035c9c","head":{"label":"heXelium:ProcessStartInfoIssue","ref":"ProcessStartInfoIssue","sha":"612c2c732de4cf999768f4584511950485035c9c","user":{"login":"heXelium","id":3466627,"avatar_url":"https://avatars.githubusercontent.com/u/3466627?v=3","gravatar_id":"","url":"https://api.github.com/users/heXelium","html_url":"https://github.com/heXelium","followers_url":"https://api.github.com/users/heXelium/followers","following_url":"https://api.github.com/users/heXelium/following{/other_user}","gists_url":"https://api.github.com/users/heXelium/gists{/gist_id}","starred_url":"https://api.github.com/users/heXelium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heXelium/subscriptions","organizations_url":"https://api.github.com/users/heXelium/orgs","repos_url":"https://api.github.com/users/heXelium/repos","events_url":"https://api.github.com/users/heXelium/events{/privacy}","received_events_url":"https://api.github.com/users/heXelium/received_events","type":"User","site_admin":false},"repo":{"id":31603815,"name":"corefx","full_name":"heXelium/corefx","owner":{"login":"heXelium","id":3466627,"avatar_url":"https://avatars.githubusercontent.com/u/3466627?v=3","gravatar_id":"","url":"https://api.github.com/users/heXelium","html_url":"https://github.com/heXelium","followers_url":"https://api.github.com/users/heXelium/followers","following_url":"https://api.github.com/users/heXelium/following{/other_user}","gists_url":"https://api.github.com/users/heXelium/gists{/gist_id}","starred_url":"https://api.github.com/users/heXelium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/heXelium/subscriptions","organizations_url":"https://api.github.com/users/heXelium/orgs","repos_url":"https://api.github.com/users/heXelium/repos","events_url":"https://api.github.com/users/heXelium/events{/privacy}","received_events_url":"https://api.github.com/users/heXelium/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/heXelium/corefx","description":"This repo contains the foundational libraries that make up the .NET Core development stack.","fork":true,"url":"https://api.github.com/repos/heXelium/corefx","forks_url":"https://api.github.com/repos/heXelium/corefx/forks","keys_url":"https://api.github.com/repos/heXelium/corefx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/heXelium/corefx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/heXelium/corefx/teams","hooks_url":"https://api.github.com/repos/heXelium/corefx/hooks","issue_events_url":"https://api.github.com/repos/heXelium/corefx/issues/events{/number}","events_url":"https://api.github.com/repos/heXelium/corefx/events","assignees_url":"https://api.github.com/repos/heXelium/corefx/assignees{/user}","branches_url":"https://api.github.com/repos/heXelium/corefx/branches{/branch}","tags_url":"https://api.github.com/repos/heXelium/corefx/tags","blobs_url":"https://api.github.com/repos/heXelium/corefx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/heXelium/corefx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/heXelium/corefx/git/refs{/sha}","trees_url":"https://api.github.com/repos/heXelium/corefx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/heXelium/corefx/statuses/{sha}","languages_url":"https://api.github.com/repos/heXelium/corefx/languages","stargazers_url":"https://api.github.com/repos/heXelium/corefx/stargazers","contributors_url":"https://api.github.com/repos/heXelium/corefx/contributors","subscribers_url":"https://api.github.com/repos/heXelium/corefx/subscribers","subscription_url":"https://api.github.com/repos/heXelium/corefx/subscription","commits_url":"https://api.github.com/repos/heXelium/corefx/commits{/sha}","git_commits_url":"https://api.github.com/repos/heXelium/corefx/git/commits{/sha}","comments_url":"https://api.github.com/repos/heXelium/corefx/comments{/number}","issue_comment_url":"https://api.github.com/repos/heXelium/corefx/issues/comments{/number}","contents_url":"https://api.github.com/repos/heXelium/corefx/contents/{+path}","compare_url":"https://api.github.com/repos/heXelium/corefx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/heXelium/corefx/merges","archive_url":"https://api.github.com/repos/heXelium/corefx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/heXelium/corefx/downloads","issues_url":"https://api.github.com/repos/heXelium/corefx/issues{/number}","pulls_url":"https://api.github.com/repos/heXelium/corefx/pulls{/number}","milestones_url":"https://api.github.com/repos/heXelium/corefx/milestones{/number}","notifications_url":"https://api.github.com/repos/heXelium/corefx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/heXelium/corefx/labels{/name}","releases_url":"https://api.github.com/repos/heXelium/corefx/releases{/id}","created_at":"2015-03-03T14:55:40Z","updated_at":"2015-03-18T09:19:23Z","pushed_at":"2015-03-18T16:16:48Z","git_url":"git://github.com/heXelium/corefx.git","ssh_url":"git@github.com:heXelium/corefx.git","clone_url":"https://github.com/heXelium/corefx.git","svn_url":"https://github.com/heXelium/corefx","homepage":"","size":11367,"stargazers_count":0,"watchers_count":0,"language":"C#","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"dotnet:master","ref":"master","sha":"2381d0d5e45e3f62c877a1767b8e87adc6d8edd2","user":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"repo":{"id":26295345,"name":"corefx","full_name":"dotnet/corefx","owner":{"login":"dotnet","id":9141961,"avatar_url":"https://avatars.githubusercontent.com/u/9141961?v=3","gravatar_id":"","url":"https://api.github.com/users/dotnet","html_url":"https://github.com/dotnet","followers_url":"https://api.github.com/users/dotnet/followers","following_url":"https://api.github.com/users/dotnet/following{/other_user}","gists_url":"https://api.github.com/users/dotnet/gists{/gist_id}","starred_url":"https://api.github.com/users/dotnet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dotnet/subscriptions","organizations_url":"https://api.github.com/users/dotnet/orgs","repos_url":"https://api.github.com/users/dotnet/repos","events_url":"https://api.github.com/users/dotnet/events{/privacy}","received_events_url":"https://api.github.com/users/dotnet/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/dotnet/corefx","description":"This repo contains the .NET Core foundational libraries, called CoreFX. It includes classes for collections, file systems, console, XML, async and many others.","fork":false,"url":"https://api.github.com/repos/dotnet/corefx","forks_url":"https://api.github.com/repos/dotnet/corefx/forks","keys_url":"https://api.github.com/repos/dotnet/corefx/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dotnet/corefx/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dotnet/corefx/teams","hooks_url":"https://api.github.com/repos/dotnet/corefx/hooks","issue_events_url":"https://api.github.com/repos/dotnet/corefx/issues/events{/number}","events_url":"https://api.github.com/repos/dotnet/corefx/events","assignees_url":"https://api.github.com/repos/dotnet/corefx/assignees{/user}","branches_url":"https://api.github.com/repos/dotnet/corefx/branches{/branch}","tags_url":"https://api.github.com/repos/dotnet/corefx/tags","blobs_url":"https://api.github.com/repos/dotnet/corefx/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dotnet/corefx/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dotnet/corefx/git/refs{/sha}","trees_url":"https://api.github.com/repos/dotnet/corefx/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dotnet/corefx/statuses/{sha}","languages_url":"https://api.github.com/repos/dotnet/corefx/languages","stargazers_url":"https://api.github.com/repos/dotnet/corefx/stargazers","contributors_url":"https://api.github.com/repos/dotnet/corefx/contributors","subscribers_url":"https://api.github.com/repos/dotnet/corefx/subscribers","subscription_url":"https://api.github.com/repos/dotnet/corefx/subscription","commits_url":"https://api.github.com/repos/dotnet/corefx/commits{/sha}","git_commits_url":"https://api.github.com/repos/dotnet/corefx/git/commits{/sha}","comments_url":"https://api.github.com/repos/dotnet/corefx/comments{/number}","issue_comment_url":"https://api.github.com/repos/dotnet/corefx/issues/comments{/number}","contents_url":"https://api.github.com/repos/dotnet/corefx/contents/{+path}","compare_url":"https://api.github.com/repos/dotnet/corefx/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dotnet/corefx/merges","archive_url":"https://api.github.com/repos/dotnet/corefx/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dotnet/corefx/downloads","issues_url":"https://api.github.com/repos/dotnet/corefx/issues{/number}","pulls_url":"https://api.github.com/repos/dotnet/corefx/pulls{/number}","milestones_url":"https://api.github.com/repos/dotnet/corefx/milestones{/number}","notifications_url":"https://api.github.com/repos/dotnet/corefx/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dotnet/corefx/labels{/name}","releases_url":"https://api.github.com/repos/dotnet/corefx/releases{/id}","created_at":"2014-11-06T23:42:48Z","updated_at":"2015-03-18T16:55:40Z","pushed_at":"2015-03-18T16:55:29Z","git_url":"git://github.com/dotnet/corefx.git","ssh_url":"git@github.com:dotnet/corefx.git","clone_url":"https://github.com/dotnet/corefx.git","svn_url":"https://github.com/dotnet/corefx","homepage":"","size":26371,"stargazers_count":7227,"watchers_count":7227,"language":"C#","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1373,"mirror_url":null,"open_issues_count":301,"forks":1373,"open_issues":301,"watchers":7227,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1167"},"html":{"href":"https://github.com/dotnet/corefx/pull/1167"},"issue":{"href":"https://api.github.com/repos/dotnet/corefx/issues/1167"},"comments":{"href":"https://api.github.com/repos/dotnet/corefx/issues/1167/comments"},"review_comments":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1167/comments"},"review_comment":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/dotnet/corefx/pulls/1167/commits"},"statuses":{"href":"https://api.github.com/repos/dotnet/corefx/statuses/612c2c732de4cf999768f4584511950485035c9c"}}}}