{"action":"created","issue":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/276","labels_url":"https://api.github.com/repos/flux-framework/flux-core/issues/276/labels{/name}","comments_url":"https://api.github.com/repos/flux-framework/flux-core/issues/276/comments","events_url":"https://api.github.com/repos/flux-framework/flux-core/issues/276/events","html_url":"https://github.com/flux-framework/flux-core/pull/276","id":95847157,"number":276,"title":"cleanup files on exit","user":{"login":"trws","id":660149,"avatar_url":"https://avatars.githubusercontent.com/u/660149?v=3","gravatar_id":"","url":"https://api.github.com/users/trws","html_url":"https://github.com/trws","followers_url":"https://api.github.com/users/trws/followers","following_url":"https://api.github.com/users/trws/following{/other_user}","gists_url":"https://api.github.com/users/trws/gists{/gist_id}","starred_url":"https://api.github.com/users/trws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trws/subscriptions","organizations_url":"https://api.github.com/users/trws/orgs","repos_url":"https://api.github.com/users/trws/repos","events_url":"https://api.github.com/users/trws/events{/privacy}","received_events_url":"https://api.github.com/users/trws/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/flux-framework/flux-core/labels/review","name":"review","color":"ededed"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-07-18T18:21:05Z","updated_at":"2015-07-18T19:13:52Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/flux-framework/flux-core/pulls/276","html_url":"https://github.com/flux-framework/flux-core/pull/276","diff_url":"https://github.com/flux-framework/flux-core/pull/276.diff","patch_url":"https://github.com/flux-framework/flux-core/pull/276.patch"},"body":"Added a utility API to clean up state on process exit.  Currently does files\r\nand directories, cleaning up the API socket, broker pid file and directory on\r\nexit from the broker.\r\n\r\nIt's probably overkill to set it up this way, but I have a feeling there will be more uses for this as time goes on.\r\n\r\nfixes #71"},"comment":{"url":"https://api.github.com/repos/flux-framework/flux-core/issues/comments/122581432","html_url":"https://github.com/flux-framework/flux-core/pull/276#issuecomment-122581432","issue_url":"https://api.github.com/repos/flux-framework/flux-core/issues/276","id":122581432,"user":{"login":"trws","id":660149,"avatar_url":"https://avatars.githubusercontent.com/u/660149?v=3","gravatar_id":"","url":"https://api.github.com/users/trws","html_url":"https://github.com/trws","followers_url":"https://api.github.com/users/trws/followers","following_url":"https://api.github.com/users/trws/following{/other_user}","gists_url":"https://api.github.com/users/trws/gists{/gist_id}","starred_url":"https://api.github.com/users/trws/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/trws/subscriptions","organizations_url":"https://api.github.com/users/trws/orgs","repos_url":"https://api.github.com/users/trws/repos","events_url":"https://api.github.com/users/trws/events{/privacy}","received_events_url":"https://api.github.com/users/trws/received_events","type":"User","site_admin":false},"created_at":"2015-07-18T19:13:52Z","updated_at":"2015-07-18T19:13:52Z","body":"I'll fix that up.  It occurred to me that I should change the signature around a bit anyway.\n\nI have something for the session listing but it needs a fix to the infinite loop on open, and it should be converted into an actual command, plus have a sanctioned way to select one from the flux come end. I'll take a look at it after lunch and see how much that would actually take.\n\n\n\nSent with Good (www.good.com)\n\n________________________________\nFrom: Jim Garlick\nSent: Saturday, July 18, 2015 11:58:28 AM\nTo: flux-framework/flux-core\nCc: Scogland, Thomas Richard William\nSubject: Re: [flux-core] cleanup files on exit (#276)\n\n\nThis is useful!\n\nMinor but RFC 7<https://github.com/flux-framework/rfc/blob/master/spec_7.adoc> says function typedefs should be pointers and end in _f.\n\nHad you converged on a session URI listing utility that should be part of this PR?\n\n—\nReply to this email directly or view it on GitHub<https://github.com/flux-framework/flux-core/pull/276#issuecomment-122580437>.\n"}}