{"action":"reopened","issue":{"url":"https://api.github.com/repos/giampaolo/psutil/issues/556","labels_url":"https://api.github.com/repos/giampaolo/psutil/issues/556/labels{/name}","comments_url":"https://api.github.com/repos/giampaolo/psutil/issues/556/comments","events_url":"https://api.github.com/repos/giampaolo/psutil/issues/556/events","html_url":"https://github.com/giampaolo/psutil/issues/556","id":51321742,"number":556,"title":"Lots of file handles left open due to return before closing","user":{"login":"sandrotosi","id":346648,"avatar_url":"https://avatars.githubusercontent.com/u/346648?v=3","gravatar_id":"","url":"https://api.github.com/users/sandrotosi","html_url":"https://github.com/sandrotosi","followers_url":"https://api.github.com/users/sandrotosi/followers","following_url":"https://api.github.com/users/sandrotosi/following{/other_user}","gists_url":"https://api.github.com/users/sandrotosi/gists{/gist_id}","starred_url":"https://api.github.com/users/sandrotosi/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandrotosi/subscriptions","organizations_url":"https://api.github.com/users/sandrotosi/orgs","repos_url":"https://api.github.com/users/sandrotosi/repos","events_url":"https://api.github.com/users/sandrotosi/events{/privacy}","received_events_url":"https://api.github.com/users/sandrotosi/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/giampaolo/psutil/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/giampaolo/psutil/labels/OpSys-Linux","name":"OpSys-Linux","color":"FFFFFF"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":11,"created_at":"2014-12-08T16:32:30Z","updated_at":"2015-01-03T13:50:25Z","closed_at":null,"body":"Hello,\r\nas reported in Debian bug bugs.debian.org/772543 here are several file handles left opened due to the use of return before the handle closure; some have been fixed in https://github.com/giampaolo/psutil/commit/3760d9593524e553e9e012c6b63cd802e3b25a46 but several others are still around (even in that very same commit, the first hunk leave the fd opened.\r\n\r\nfor programs meant to keep running, leaving fd opened will hit linux limits, like the reported described\r\n\r\nRegards,\r\nSandro"}}