{"action":"created","issue":{"url":"https://api.github.com/repos/joblib/joblib/issues/187","labels_url":"https://api.github.com/repos/joblib/joblib/issues/187/labels{/name}","comments_url":"https://api.github.com/repos/joblib/joblib/issues/187/comments","events_url":"https://api.github.com/repos/joblib/joblib/issues/187/events","html_url":"https://github.com/joblib/joblib/issues/187","id":57872940,"number":187,"title":"Terminating pool leaks resources","user":{"login":"smrhein","id":102372,"avatar_url":"https://avatars.githubusercontent.com/u/102372?v=3","gravatar_id":"","url":"https://api.github.com/users/smrhein","html_url":"https://github.com/smrhein","followers_url":"https://api.github.com/users/smrhein/followers","following_url":"https://api.github.com/users/smrhein/following{/other_user}","gists_url":"https://api.github.com/users/smrhein/gists{/gist_id}","starred_url":"https://api.github.com/users/smrhein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smrhein/subscriptions","organizations_url":"https://api.github.com/users/smrhein/orgs","repos_url":"https://api.github.com/users/smrhein/repos","events_url":"https://api.github.com/users/smrhein/events{/privacy}","received_events_url":"https://api.github.com/users/smrhein/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/joblib/joblib/labels/Bug","name":"Bug","color":"e11d21"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-02-17T01:35:48Z","updated_at":"2015-03-25T12:36:11Z","closed_at":null,"body":"I am using the posix_ipc library for POSIX semaphores, shared memory and message queues.  When using joblib.Parallel, I noticed some of the IPC resources were not getting freed upon successful completion.  I tracked this down to the closing of the joblib.Parallel._pool which calls close() followed by terminate().  It seems that terminate() was causing the workers to exit before all resources were freed.  I resolved this issue by replacing terminate() with join(). "},"comment":{"url":"https://api.github.com/repos/joblib/joblib/issues/comments/86007123","html_url":"https://github.com/joblib/joblib/issues/187#issuecomment-86007123","issue_url":"https://api.github.com/repos/joblib/joblib/issues/187","id":86007123,"user":{"login":"smrhein","id":102372,"avatar_url":"https://avatars.githubusercontent.com/u/102372?v=3","gravatar_id":"","url":"https://api.github.com/users/smrhein","html_url":"https://github.com/smrhein","followers_url":"https://api.github.com/users/smrhein/followers","following_url":"https://api.github.com/users/smrhein/following{/other_user}","gists_url":"https://api.github.com/users/smrhein/gists{/gist_id}","starred_url":"https://api.github.com/users/smrhein/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smrhein/subscriptions","organizations_url":"https://api.github.com/users/smrhein/orgs","repos_url":"https://api.github.com/users/smrhein/repos","events_url":"https://api.github.com/users/smrhein/events{/privacy}","received_events_url":"https://api.github.com/users/smrhein/received_events","type":"User","site_admin":false},"created_at":"2015-03-25T12:36:11Z","updated_at":"2015-03-25T12:36:11Z","body":"I'll try to come up with something..."}}