{"action":"created","issue":{"url":"https://api.github.com/repos/haskell/process/issues/32","labels_url":"https://api.github.com/repos/haskell/process/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/haskell/process/issues/32/comments","events_url":"https://api.github.com/repos/haskell/process/issues/32/events","html_url":"https://github.com/haskell/process/issues/32","id":81191536,"number":32,"title":"expose windows DETACHED_PROCESS flag","user":{"login":"joeyh","id":16392,"avatar_url":"https://avatars.githubusercontent.com/u/16392?v=3","gravatar_id":"","url":"https://api.github.com/users/joeyh","html_url":"https://github.com/joeyh","followers_url":"https://api.github.com/users/joeyh/followers","following_url":"https://api.github.com/users/joeyh/following{/other_user}","gists_url":"https://api.github.com/users/joeyh/gists{/gist_id}","starred_url":"https://api.github.com/users/joeyh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/joeyh/subscriptions","organizations_url":"https://api.github.com/users/joeyh/orgs","repos_url":"https://api.github.com/users/joeyh/repos","events_url":"https://api.github.com/users/joeyh/events{/privacy}","received_events_url":"https://api.github.com/users/joeyh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-05-26T23:56:53Z","updated_at":"2015-05-27T00:15:54Z","closed_at":null,"body":"On Windows the DETACHED_PROCESS flag lets the process detached from the terminal. I need this to run ssh with SSH_ASKPASS, which only works when it has no controlling console. So, could this be added as a new field to CreateProcess, perhaps called detach_from_console?\r\n\r\nI needed to set both DETACHED_PROCESS and CREATE_NO_WINDOW to get the desired result. (Otherwise, windows pops up a new console window.)\r\n\r\nIt might make sense to have the unix implementation of detach_from_console call setsid.\r\n\r\nIf this plan seems to make sense, I'll cook up a patch, since I need this functionality."},"comment":{"url":"https://api.github.com/repos/haskell/process/issues/comments/105702190","html_url":"https://github.com/haskell/process/issues/32#issuecomment-105702190","issue_url":"https://api.github.com/repos/haskell/process/issues/32","id":105702190,"user":{"login":"db48x","id":228849,"avatar_url":"https://avatars.githubusercontent.com/u/228849?v=3","gravatar_id":"","url":"https://api.github.com/users/db48x","html_url":"https://github.com/db48x","followers_url":"https://api.github.com/users/db48x/followers","following_url":"https://api.github.com/users/db48x/following{/other_user}","gists_url":"https://api.github.com/users/db48x/gists{/gist_id}","starred_url":"https://api.github.com/users/db48x/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/db48x/subscriptions","organizations_url":"https://api.github.com/users/db48x/orgs","repos_url":"https://api.github.com/users/db48x/repos","events_url":"https://api.github.com/users/db48x/events{/privacy}","received_events_url":"https://api.github.com/users/db48x/received_events","type":"User","site_admin":false},"created_at":"2015-05-27T00:15:54Z","updated_at":"2015-05-27T00:15:54Z","body":"Joey, I don't have my windows machine set up for building; could you take it from here?"}}