{"action":"closed","issue":{"url":"https://api.github.com/repos/theorm/mongobox/issues/3","labels_url":"https://api.github.com/repos/theorm/mongobox/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/theorm/mongobox/issues/3/comments","events_url":"https://api.github.com/repos/theorm/mongobox/issues/3/events","html_url":"https://github.com/theorm/mongobox/issues/3","id":29813897,"number":3,"title":"Error on process terminate","user":{"login":"johnpaulhayes","id":402572,"avatar_url":"https://avatars.githubusercontent.com/u/402572?v=3","gravatar_id":"","url":"https://api.github.com/users/johnpaulhayes","html_url":"https://github.com/johnpaulhayes","followers_url":"https://api.github.com/users/johnpaulhayes/followers","following_url":"https://api.github.com/users/johnpaulhayes/following{/other_user}","gists_url":"https://api.github.com/users/johnpaulhayes/gists{/gist_id}","starred_url":"https://api.github.com/users/johnpaulhayes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/johnpaulhayes/subscriptions","organizations_url":"https://api.github.com/users/johnpaulhayes/orgs","repos_url":"https://api.github.com/users/johnpaulhayes/repos","events_url":"https://api.github.com/users/johnpaulhayes/events{/privacy}","received_events_url":"https://api.github.com/users/johnpaulhayes/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2014-03-20T12:19:32Z","updated_at":"2015-01-24T01:33:16Z","closed_at":"2015-01-24T01:33:16Z","body":"Hey,\r\n\r\nGreat job on this module. Very helpful.\r\n\r\n\r\nI've come across a problem when using the mobule on ubuntu:\r\n\r\n```\r\nLinux cms 3.2.0-23-generic #36-Ubuntu SMP Tue Apr 10 20:39:51 UTC 2012 x86_64 x86_64 x86_64 GNU/Linux\r\n```\r\n\r\nI'm getting the following error\r\n\r\n```\r\nbox.stop()\r\nFile \"/usr/local/lib/python2.7/dist-packages/mongobox/mongobox.py\", line 100, in stop\r\n    self.process.terminate()\r\nAttributeError: 'Popen' object has no attribute 'terminate'\r\n```\r\n\r\nTo resolve the issue, I updated the relevant line (100 of mongobox.py) to the following:\r\n\r\n```\r\n        # Not sure if there should be more checks for\r\n        # other platforms.\r\n        if sys.platform == 'darwin':\r\n            self.process.kill()\r\n        else:\r\n            os.kill(self.process.pid, 9)\r\n        self.process.wait()\r\n```\r\n\r\nJust thought that you might find this helpful.\r\n\r\n--\r\nAll the best,\r\nJohn Paul"}}