{"action":"created","issue":{"url":"https://api.github.com/repos/saleyn/erlexec/issues/54","labels_url":"https://api.github.com/repos/saleyn/erlexec/issues/54/labels{/name}","comments_url":"https://api.github.com/repos/saleyn/erlexec/issues/54/comments","events_url":"https://api.github.com/repos/saleyn/erlexec/issues/54/events","html_url":"https://github.com/saleyn/erlexec/issues/54","id":110525059,"number":54,"title":"Any incoming message while waiting for sync subprocess treated as error","user":{"login":"nwalker","id":200176,"avatar_url":"https://avatars.githubusercontent.com/u/200176?v=3","gravatar_id":"","url":"https://api.github.com/users/nwalker","html_url":"https://github.com/nwalker","followers_url":"https://api.github.com/users/nwalker/followers","following_url":"https://api.github.com/users/nwalker/following{/other_user}","gists_url":"https://api.github.com/users/nwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/nwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwalker/subscriptions","organizations_url":"https://api.github.com/users/nwalker/orgs","repos_url":"https://api.github.com/users/nwalker/repos","events_url":"https://api.github.com/users/nwalker/events{/privacy}","received_events_url":"https://api.github.com/users/nwalker/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2015-10-08T19:28:58Z","updated_at":"2016-01-29T13:30:13Z","closed_at":"2016-01-29T13:30:13Z","body":"```\r\n(kerl:r17) ~/p/erlexec (master|✔)                                                                                                                                       \r\n> erl -pa ebin\r\nErlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:8:8] [async-threads:10] [kernel-poll:false]\r\n\r\nEshell V6.4  (abort with ^G)\r\n1> application:start(exec).\r\nok\r\n2> application:which_applications().\r\n[{exec,\"OS Process Manager\",\"v1.0-156-g05edfd2\"},\r\n {stdlib,\"ERTS  CXC 138 10\",\"2.4\"},\r\n {kernel,\"ERTS  CXC 138 10\",\"3.2\"}]\r\n3> spawn(fun () -> io:format(\"~p~n\", [exec:run(\"sleep 3 && echo done\", [sync, stdout])]) end) ! test.\r\ntest\r\n{error,[{reason,test}]}\r\n```\r\nAs I can see, there is a [clause in exec:wait_for_ospid_exit](https://github.com/saleyn/erlexec/blob/master/src/exec.erl#L724-L725) which treats any incoming message as an error message. Are you sure this behaviour is correct?\r\n"},"comment":{"url":"https://api.github.com/repos/saleyn/erlexec/issues/comments/176754217","html_url":"https://github.com/saleyn/erlexec/issues/54#issuecomment-176754217","issue_url":"https://api.github.com/repos/saleyn/erlexec/issues/54","id":176754217,"user":{"login":"nwalker","id":200176,"avatar_url":"https://avatars.githubusercontent.com/u/200176?v=3","gravatar_id":"","url":"https://api.github.com/users/nwalker","html_url":"https://github.com/nwalker","followers_url":"https://api.github.com/users/nwalker/followers","following_url":"https://api.github.com/users/nwalker/following{/other_user}","gists_url":"https://api.github.com/users/nwalker/gists{/gist_id}","starred_url":"https://api.github.com/users/nwalker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nwalker/subscriptions","organizations_url":"https://api.github.com/users/nwalker/orgs","repos_url":"https://api.github.com/users/nwalker/repos","events_url":"https://api.github.com/users/nwalker/events{/privacy}","received_events_url":"https://api.github.com/users/nwalker/received_events","type":"User","site_admin":false},"created_at":"2016-01-29T13:30:13Z","updated_at":"2016-01-29T13:30:13Z","body":"Issue already fixed in master by 95a9f21 / #58 "}}