{"action":"created","issue":{"url":"https://api.github.com/repos/hozumi/clj-commons-exec/issues/4","labels_url":"https://api.github.com/repos/hozumi/clj-commons-exec/issues/4/labels{/name}","comments_url":"https://api.github.com/repos/hozumi/clj-commons-exec/issues/4/comments","events_url":"https://api.github.com/repos/hozumi/clj-commons-exec/issues/4/events","html_url":"https://github.com/hozumi/clj-commons-exec/pull/4","id":55232494,"number":4,"title":"Fix promise returned by clj-commons-exec/sh is unrealized when output pipe closed by a third party.","user":{"login":"bilus","id":1025537,"avatar_url":"https://avatars.githubusercontent.com/u/1025537?v=3","gravatar_id":"","url":"https://api.github.com/users/bilus","html_url":"https://github.com/bilus","followers_url":"https://api.github.com/users/bilus/followers","following_url":"https://api.github.com/users/bilus/following{/other_user}","gists_url":"https://api.github.com/users/bilus/gists{/gist_id}","starred_url":"https://api.github.com/users/bilus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bilus/subscriptions","organizations_url":"https://api.github.com/users/bilus/orgs","repos_url":"https://api.github.com/users/bilus/repos","events_url":"https://api.github.com/users/bilus/events{/privacy}","received_events_url":"https://api.github.com/users/bilus/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-01-23T01:10:39Z","updated_at":"2015-01-28T18:51:31Z","closed_at":"2015-01-28T18:48:52Z","pull_request":{"url":"https://api.github.com/repos/hozumi/clj-commons-exec/pulls/4","html_url":"https://github.com/hozumi/clj-commons-exec/pull/4","diff_url":"https://github.com/hozumi/clj-commons-exec/pull/4.diff","patch_url":"https://github.com/hozumi/clj-commons-exec/pull/4.patch"},"body":"I'm using `sh` with pipes. In some circumstances the output pipe can close before the process exits. When used along with `:close-out?`, it results in unrealized promise.\r\n\r\n```clojure\r\n(let [promise (exec/sh [... \"stdout\"]\r\n                         {:out        out-pipe\r\n                          :close-out? true})]\r\n;;  ... out-pipe gets closed by a third party\r\n;; ... the process finishes\r\n(assert (realized? promise)) ;; AssertError\r\n```\r\n\r\nPlease let me know if you need more details."},"comment":{"url":"https://api.github.com/repos/hozumi/clj-commons-exec/issues/comments/71892152","html_url":"https://github.com/hozumi/clj-commons-exec/pull/4#issuecomment-71892152","issue_url":"https://api.github.com/repos/hozumi/clj-commons-exec/issues/4","id":71892152,"user":{"login":"hozumi","id":410572,"avatar_url":"https://avatars.githubusercontent.com/u/410572?v=3","gravatar_id":"","url":"https://api.github.com/users/hozumi","html_url":"https://github.com/hozumi","followers_url":"https://api.github.com/users/hozumi/followers","following_url":"https://api.github.com/users/hozumi/following{/other_user}","gists_url":"https://api.github.com/users/hozumi/gists{/gist_id}","starred_url":"https://api.github.com/users/hozumi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hozumi/subscriptions","organizations_url":"https://api.github.com/users/hozumi/orgs","repos_url":"https://api.github.com/users/hozumi/repos","events_url":"https://api.github.com/users/hozumi/events{/privacy}","received_events_url":"https://api.github.com/users/hozumi/received_events","type":"User","site_admin":false},"created_at":"2015-01-28T18:51:31Z","updated_at":"2015-01-28T18:51:31Z","body":"Hi bilus,\r\nThank you for reporting and identifying the cause.\r\nI've uploaded v1.2.0 to clojars."}}