{"action":"closed","issue":{"url":"https://api.github.com/repos/lxc/lxd/issues/387","labels_url":"https://api.github.com/repos/lxc/lxd/issues/387/labels{/name}","comments_url":"https://api.github.com/repos/lxc/lxd/issues/387/comments","events_url":"https://api.github.com/repos/lxc/lxd/issues/387/events","html_url":"https://github.com/lxc/lxd/issues/387","id":61227637,"number":387,"title":"The fork() call in LXD causes hangs on exec","user":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/lxc/lxd/labels/Bug","name":"Bug","color":"eb6420"},{"url":"https://api.github.com/repos/lxc/lxd/labels/Release%20critical","name":"Release critical","color":"e11d21"}],"state":"closed","locked":false,"assignee":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/lxc/lxd/milestones/4","html_url":"https://github.com/lxc/lxd/milestones/lxd-0.4","labels_url":"https://api.github.com/repos/lxc/lxd/milestones/4/labels","id":958446,"number":4,"title":"lxd-0.4","description":"","creator":{"login":"stgraber","id":2230599,"avatar_url":"https://avatars.githubusercontent.com/u/2230599?v=3","gravatar_id":"","url":"https://api.github.com/users/stgraber","html_url":"https://github.com/stgraber","followers_url":"https://api.github.com/users/stgraber/followers","following_url":"https://api.github.com/users/stgraber/following{/other_user}","gists_url":"https://api.github.com/users/stgraber/gists{/gist_id}","starred_url":"https://api.github.com/users/stgraber/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/stgraber/subscriptions","organizations_url":"https://api.github.com/users/stgraber/orgs","repos_url":"https://api.github.com/users/stgraber/repos","events_url":"https://api.github.com/users/stgraber/events{/privacy}","received_events_url":"https://api.github.com/users/stgraber/received_events","type":"User","site_admin":false},"open_issues":9,"closed_issues":7,"state":"open","created_at":"2015-01-30T15:41:25Z","updated_at":"2015-03-16T18:34:05Z","due_on":"2015-03-17T04:00:00Z","closed_at":null},"comments":0,"created_at":"2015-03-13T20:36:56Z","updated_at":"2015-03-16T18:34:05Z","closed_at":"2015-03-16T18:34:05Z","body":"Ever since fork() was introduced for interactive exec, I've had random hangs on exec.\r\n\r\nTurning off the fork(), things are stable again as can trivially be tested with:\r\n\r\n    for i in $(seq 100); do lxc exec foo env >/dev/null; done\r\n\r\nSo I guess we'll have to find a different way of setting the control terminal."}}