{"action":"opened","issue":{"url":"https://api.github.com/repos/VrayoSystems/vtrunkd/issues/223","repository_url":"https://api.github.com/repos/VrayoSystems/vtrunkd","labels_url":"https://api.github.com/repos/VrayoSystems/vtrunkd/issues/223/labels{/name}","comments_url":"https://api.github.com/repos/VrayoSystems/vtrunkd/issues/223/comments","events_url":"https://api.github.com/repos/VrayoSystems/vtrunkd/issues/223/events","html_url":"https://github.com/VrayoSystems/vtrunkd/issues/223","id":140516153,"number":223,"title":"Investigate what happens when all processes quit at server side","user":{"login":"grandrew","id":243218,"avatar_url":"https://avatars.githubusercontent.com/u/243218?v=3","gravatar_id":"","url":"https://api.github.com/users/grandrew","html_url":"https://github.com/grandrew","followers_url":"https://api.github.com/users/grandrew/followers","following_url":"https://api.github.com/users/grandrew/following{/other_user}","gists_url":"https://api.github.com/users/grandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/grandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grandrew/subscriptions","organizations_url":"https://api.github.com/users/grandrew/orgs","repos_url":"https://api.github.com/users/grandrew/repos","events_url":"https://api.github.com/users/grandrew/events{/privacy}","received_events_url":"https://api.github.com/users/grandrew/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/VrayoSystems/vtrunkd/labels/bug","name":"bug","color":"fc2929"},{"url":"https://api.github.com/repos/VrayoSystems/vtrunkd/labels/question","name":"question","color":"cc317c"}],"state":"open","locked":false,"assignee":{"login":"grandrew","id":243218,"avatar_url":"https://avatars.githubusercontent.com/u/243218?v=3","gravatar_id":"","url":"https://api.github.com/users/grandrew","html_url":"https://github.com/grandrew","followers_url":"https://api.github.com/users/grandrew/followers","following_url":"https://api.github.com/users/grandrew/following{/other_user}","gists_url":"https://api.github.com/users/grandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/grandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grandrew/subscriptions","organizations_url":"https://api.github.com/users/grandrew/orgs","repos_url":"https://api.github.com/users/grandrew/repos","events_url":"https://api.github.com/users/grandrew/events{/privacy}","received_events_url":"https://api.github.com/users/grandrew/received_events","type":"User","site_admin":false},"milestone":{"url":"https://api.github.com/repos/VrayoSystems/vtrunkd/milestones/6","html_url":"https://github.com/VrayoSystems/vtrunkd/milestones/Soft%201.0","labels_url":"https://api.github.com/repos/VrayoSystems/vtrunkd/milestones/6/labels","id":1475203,"number":6,"title":"Soft 1.0","description":"","creator":{"login":"grandrew","id":243218,"avatar_url":"https://avatars.githubusercontent.com/u/243218?v=3","gravatar_id":"","url":"https://api.github.com/users/grandrew","html_url":"https://github.com/grandrew","followers_url":"https://api.github.com/users/grandrew/followers","following_url":"https://api.github.com/users/grandrew/following{/other_user}","gists_url":"https://api.github.com/users/grandrew/gists{/gist_id}","starred_url":"https://api.github.com/users/grandrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/grandrew/subscriptions","organizations_url":"https://api.github.com/users/grandrew/orgs","repos_url":"https://api.github.com/users/grandrew/repos","events_url":"https://api.github.com/users/grandrew/events{/privacy}","received_events_url":"https://api.github.com/users/grandrew/received_events","type":"User","site_admin":false},"open_issues":21,"closed_issues":25,"state":"open","created_at":"2015-12-27T17:53:16Z","updated_at":"2016-03-13T19:02:04Z","due_on":null,"closed_at":null},"comments":0,"created_at":"2016-03-13T19:02:04Z","updated_at":"2016-03-13T19:02:04Z","closed_at":null,"body":"in `tunnel.c` we have this to search for the SHM index to attach:\r\n\r\n```c\r\nshm_conn_info[i2].usecount > 0 && strcmp(shm_conn_info[i2].devname, dev) == 0\r\n```\r\n\r\nbut in case all processes quit, we may end up with `usecount == 0` but SHM not cleared, and fd_server not quit. In this case we may not be able to attach again until fd_server quits due to timeout."}}