{"action":"closed","issue":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1032","repository_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH","labels_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1032/labels{/name}","comments_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1032/comments","events_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/issues/1032/events","html_url":"https://github.com/PowerShell/Win32-OpenSSH/issues/1032","id":290748526,"number":1032,"title":"Allow Breakaway OK on SSH Job","user":{"login":"jborean93","id":8462645,"avatar_url":"https://avatars3.githubusercontent.com/u/8462645?v=4","gravatar_id":"","url":"https://api.github.com/users/jborean93","html_url":"https://github.com/jborean93","followers_url":"https://api.github.com/users/jborean93/followers","following_url":"https://api.github.com/users/jborean93/following{/other_user}","gists_url":"https://api.github.com/users/jborean93/gists{/gist_id}","starred_url":"https://api.github.com/users/jborean93/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jborean93/subscriptions","organizations_url":"https://api.github.com/users/jborean93/orgs","repos_url":"https://api.github.com/users/jborean93/repos","events_url":"https://api.github.com/users/jborean93/events{/privacy}","received_events_url":"https://api.github.com/users/jborean93/received_events","type":"User","site_admin":false},"labels":[{"id":442064268,"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/labels/Area-Core","name":"Area-Core","color":"5319e7","default":false},{"id":257862387,"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/labels/Issue-Bug","name":"Issue-Bug","color":"fc2929","default":false}],"state":"closed","locked":false,"assignee":{"login":"manojampalam","id":14185020,"avatar_url":"https://avatars0.githubusercontent.com/u/14185020?v=4","gravatar_id":"","url":"https://api.github.com/users/manojampalam","html_url":"https://github.com/manojampalam","followers_url":"https://api.github.com/users/manojampalam/followers","following_url":"https://api.github.com/users/manojampalam/following{/other_user}","gists_url":"https://api.github.com/users/manojampalam/gists{/gist_id}","starred_url":"https://api.github.com/users/manojampalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojampalam/subscriptions","organizations_url":"https://api.github.com/users/manojampalam/orgs","repos_url":"https://api.github.com/users/manojampalam/repos","events_url":"https://api.github.com/users/manojampalam/events{/privacy}","received_events_url":"https://api.github.com/users/manojampalam/received_events","type":"User","site_admin":false},"assignees":[{"login":"manojampalam","id":14185020,"avatar_url":"https://avatars0.githubusercontent.com/u/14185020?v=4","gravatar_id":"","url":"https://api.github.com/users/manojampalam","html_url":"https://github.com/manojampalam","followers_url":"https://api.github.com/users/manojampalam/followers","following_url":"https://api.github.com/users/manojampalam/following{/other_user}","gists_url":"https://api.github.com/users/manojampalam/gists{/gist_id}","starred_url":"https://api.github.com/users/manojampalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojampalam/subscriptions","organizations_url":"https://api.github.com/users/manojampalam/orgs","repos_url":"https://api.github.com/users/manojampalam/repos","events_url":"https://api.github.com/users/manojampalam/events{/privacy}","received_events_url":"https://api.github.com/users/manojampalam/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/milestones/35","html_url":"https://github.com/PowerShell/Win32-OpenSSH/milestone/35","labels_url":"https://api.github.com/repos/PowerShell/Win32-OpenSSH/milestones/35/labels","id":3040084,"number":35,"title":"7.6.0.0p1-Beta","description":"","creator":{"login":"manojampalam","id":14185020,"avatar_url":"https://avatars0.githubusercontent.com/u/14185020?v=4","gravatar_id":"","url":"https://api.github.com/users/manojampalam","html_url":"https://github.com/manojampalam","followers_url":"https://api.github.com/users/manojampalam/followers","following_url":"https://api.github.com/users/manojampalam/following{/other_user}","gists_url":"https://api.github.com/users/manojampalam/gists{/gist_id}","starred_url":"https://api.github.com/users/manojampalam/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/manojampalam/subscriptions","organizations_url":"https://api.github.com/users/manojampalam/orgs","repos_url":"https://api.github.com/users/manojampalam/repos","events_url":"https://api.github.com/users/manojampalam/events{/privacy}","received_events_url":"https://api.github.com/users/manojampalam/received_events","type":"User","site_admin":false},"open_issues":0,"closed_issues":10,"state":"open","created_at":"2018-01-16T19:14:55Z","updated_at":"2018-03-01T01:38:31Z","due_on":"2018-02-28T08:00:00Z","closed_at":null},"comments":5,"created_at":"2018-01-23T08:26:04Z","updated_at":"2018-03-01T01:38:31Z","closed_at":"2018-03-01T01:38:31Z","author_association":"NONE","body":"**\"OpenSSH for Windows\" version**\r\n`1.0.0.0`\r\n \r\n**Server OperatingSystem**\r\n `Windows Server 2016 Standard Evaluation`\r\nStill applies to all other hosts as well\r\n\r\n**Client OperatingSystem**\r\nN/A (tested on MacOS though)\r\n\r\n**What is failing**\r\nThe `ssh-shellhost.exe` process that is spawned on an SSH connection does not allow processes to breakaway from the job. This means any process it spawns won't be able to breakaway from the SSH job. This is useful if you want to run a process while not keeping the SSH connection open.\r\n\r\nAs you can see by Process Explorer, the only limit placed on the Job is `Kill on Job Close`\r\n\r\n![image](https://user-images.githubusercontent.com/8462645/35265086-d6165eec-006a-11e8-8bd8-86077a13eb93.png)\r\n\r\nCompared to a process that is spawned by WinRM, it contains some more job limits that are mostly configurable by the service. The key one I am looking for is `Breakaway OK` which allows the process to call the `CreateProcess` (and derivative) the `CREATE_BREAKAWAY_FROM_JOB` creation flag https://msdn.microsoft.com/en-us/library/windows/desktop/ms684863(v=vs.85).aspx. You can see this based on the cmd.exe process that I spawned on a WinRM process\r\n\r\n![image](https://user-images.githubusercontent.com/8462645/35265068-c8f0a362-006a-11e8-8b0a-97415f3a4899.png)\r\n\r\nI'm not sure if this is intentional on your part but it would be good to hear your thoughts on this as this is a key feature Ansible uses to achieve async support on the current WinRM connection. If we were to loose this feature, our options are limited and we may need to resort to scheduled tasks which aren't really that easy to manage.\r\n\r\nOn a side note this is not a \"regression\" of the 1.0.0.0 release as this has been the case for the past few releases."}}
{"actor":{"display_login":"bingbing8"}}