{"action":"created","issue":{"url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/issues/32","labels_url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/issues/32/labels{/name}","comments_url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/issues/32/comments","events_url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/issues/32/events","html_url":"https://github.com/GsDevKit/gsApplicationTools/issues/32","id":81665681,"number":32,"title":"stopGemServerGem needs to wait until gem is truly stopped","user":{"login":"dalehenrich","id":623951,"avatar_url":"https://avatars.githubusercontent.com/u/623951?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehenrich","html_url":"https://github.com/dalehenrich","followers_url":"https://api.github.com/users/dalehenrich/followers","following_url":"https://api.github.com/users/dalehenrich/following{/other_user}","gists_url":"https://api.github.com/users/dalehenrich/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehenrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehenrich/subscriptions","organizations_url":"https://api.github.com/users/dalehenrich/orgs","repos_url":"https://api.github.com/users/dalehenrich/repos","events_url":"https://api.github.com/users/dalehenrich/events{/privacy}","received_events_url":"https://api.github.com/users/dalehenrich/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":{"url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/milestones/7","html_url":"https://github.com/GsDevKit/gsApplicationTools/milestones/2.0.0","labels_url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/milestones/7/labels","id":1137124,"number":7,"title":"2.0.0","description":"","creator":{"login":"dalehenrich","id":623951,"avatar_url":"https://avatars.githubusercontent.com/u/623951?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehenrich","html_url":"https://github.com/dalehenrich","followers_url":"https://api.github.com/users/dalehenrich/followers","following_url":"https://api.github.com/users/dalehenrich/following{/other_user}","gists_url":"https://api.github.com/users/dalehenrich/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehenrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehenrich/subscriptions","organizations_url":"https://api.github.com/users/dalehenrich/orgs","repos_url":"https://api.github.com/users/dalehenrich/repos","events_url":"https://api.github.com/users/dalehenrich/events{/privacy}","received_events_url":"https://api.github.com/users/dalehenrich/received_events","type":"User","site_admin":false},"open_issues":1,"closed_issues":1,"state":"open","created_at":"2015-05-28T01:07:26Z","updated_at":"2015-05-28T04:31:50Z","due_on":null,"closed_at":null},"comments":1,"created_at":"2015-05-27T23:13:23Z","updated_at":"2015-05-28T04:31:50Z","closed_at":"2015-05-28T04:31:50Z","body":"on loaded systems, stopGemServerGem can exit long before the gem process has truly exitted ... the following will wait until the pid exits:\r\n\r\n```\r\nwhile [[ ( -d /proc/$PID ) && ( -z `grep zombie /proc/$PID/status` ) ]]; do\r\n    sleep 1\r\ndone\r\n```\r\n\r\nI think this is okay ... there are a couple of scenarios in which this can hang forever, but those case occur when the gem itself is wedged (host call debugger or otherwise) and will require a kill -9 to eliminate ... hanging is probably preferable to leaving a process around without cleaning up the socket resources which is the real issue here and ...\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/issues/comments/106167092","html_url":"https://github.com/GsDevKit/gsApplicationTools/issues/32#issuecomment-106167092","issue_url":"https://api.github.com/repos/GsDevKit/gsApplicationTools/issues/32","id":106167092,"user":{"login":"dalehenrich","id":623951,"avatar_url":"https://avatars.githubusercontent.com/u/623951?v=3","gravatar_id":"","url":"https://api.github.com/users/dalehenrich","html_url":"https://github.com/dalehenrich","followers_url":"https://api.github.com/users/dalehenrich/followers","following_url":"https://api.github.com/users/dalehenrich/following{/other_user}","gists_url":"https://api.github.com/users/dalehenrich/gists{/gist_id}","starred_url":"https://api.github.com/users/dalehenrich/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dalehenrich/subscriptions","organizations_url":"https://api.github.com/users/dalehenrich/orgs","repos_url":"https://api.github.com/users/dalehenrich/repos","events_url":"https://api.github.com/users/dalehenrich/events{/privacy}","received_events_url":"https://api.github.com/users/dalehenrich/received_events","type":"User","site_admin":false},"created_at":"2015-05-28T04:31:50Z","updated_at":"2015-05-28T04:31:50Z","body":"[looks good](https://travis-ci.org/GsDevKit/gsApplicationTools/builds/64347866)"}}