{"action":"created","issue":{"url":"https://api.github.com/repos/net-amqp-rabbitmq/net-amqp-rabbitmq/issues/92","labels_url":"https://api.github.com/repos/net-amqp-rabbitmq/net-amqp-rabbitmq/issues/92/labels{/name}","comments_url":"https://api.github.com/repos/net-amqp-rabbitmq/net-amqp-rabbitmq/issues/92/comments","events_url":"https://api.github.com/repos/net-amqp-rabbitmq/net-amqp-rabbitmq/issues/92/events","html_url":"https://github.com/net-amqp-rabbitmq/net-amqp-rabbitmq/pull/92","id":119984164,"number":92,"title":"Handle fork","user":{"login":"celogeek","id":65178,"avatar_url":"https://avatars.githubusercontent.com/u/65178?v=3","gravatar_id":"","url":"https://api.github.com/users/celogeek","html_url":"https://github.com/celogeek","followers_url":"https://api.github.com/users/celogeek/followers","following_url":"https://api.github.com/users/celogeek/following{/other_user}","gists_url":"https://api.github.com/users/celogeek/gists{/gist_id}","starred_url":"https://api.github.com/users/celogeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celogeek/subscriptions","organizations_url":"https://api.github.com/users/celogeek/orgs","repos_url":"https://api.github.com/users/celogeek/repos","events_url":"https://api.github.com/users/celogeek/events{/privacy}","received_events_url":"https://api.github.com/users/celogeek/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":7,"created_at":"2015-12-02T16:41:29Z","updated_at":"2015-12-03T12:57:23Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/net-amqp-rabbitmq/net-amqp-rabbitmq/pulls/92","html_url":"https://github.com/net-amqp-rabbitmq/net-amqp-rabbitmq/pull/92","diff_url":"https://github.com/net-amqp-rabbitmq/net-amqp-rabbitmq/pull/92.diff","patch_url":"https://github.com/net-amqp-rabbitmq/net-amqp-rabbitmq/pull/92.patch"},"body":"When we connect in a main method, do operation on the queue, then fork, even if the child do thing with the queue, when the fork exit, the parent loose his socket.\r\n\r\nI have add a check of the pid in the \"has_valid_connection\", in order to avoid closing the socket in the child on destroy.\r\n\r\nI also ensure that the child have a state of \"not connected\" when it try to access the socket. It is mandatory to reconnect in the child to use the module again.\r\n"},"comment":{"url":"https://api.github.com/repos/net-amqp-rabbitmq/net-amqp-rabbitmq/issues/comments/161629187","html_url":"https://github.com/net-amqp-rabbitmq/net-amqp-rabbitmq/pull/92#issuecomment-161629187","issue_url":"https://api.github.com/repos/net-amqp-rabbitmq/net-amqp-rabbitmq/issues/92","id":161629187,"user":{"login":"celogeek","id":65178,"avatar_url":"https://avatars.githubusercontent.com/u/65178?v=3","gravatar_id":"","url":"https://api.github.com/users/celogeek","html_url":"https://github.com/celogeek","followers_url":"https://api.github.com/users/celogeek/followers","following_url":"https://api.github.com/users/celogeek/following{/other_user}","gists_url":"https://api.github.com/users/celogeek/gists{/gist_id}","starred_url":"https://api.github.com/users/celogeek/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/celogeek/subscriptions","organizations_url":"https://api.github.com/users/celogeek/orgs","repos_url":"https://api.github.com/users/celogeek/repos","events_url":"https://api.github.com/users/celogeek/events{/privacy}","received_events_url":"https://api.github.com/users/celogeek/received_events","type":"User","site_admin":false},"created_at":"2015-12-03T12:57:23Z","updated_at":"2015-12-03T12:57:23Z","body":"Patch done, is it ok ? do I have to fix stuff ?"}}