{"action":"created","issue":{"url":"https://api.github.com/repos/sm0svx/svxlink/issues/95","labels_url":"https://api.github.com/repos/sm0svx/svxlink/issues/95/labels{/name}","comments_url":"https://api.github.com/repos/sm0svx/svxlink/issues/95/comments","events_url":"https://api.github.com/repos/sm0svx/svxlink/issues/95/events","html_url":"https://github.com/sm0svx/svxlink/issues/95","id":41653489,"number":95,"title":"Hang during exit","user":{"login":"pe1chl","id":8188892,"avatar_url":"https://avatars.githubusercontent.com/u/8188892?v=3","gravatar_id":"","url":"https://api.github.com/users/pe1chl","html_url":"https://github.com/pe1chl","followers_url":"https://api.github.com/users/pe1chl/followers","following_url":"https://api.github.com/users/pe1chl/following{/other_user}","gists_url":"https://api.github.com/users/pe1chl/gists{/gist_id}","starred_url":"https://api.github.com/users/pe1chl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pe1chl/subscriptions","organizations_url":"https://api.github.com/users/pe1chl/orgs","repos_url":"https://api.github.com/users/pe1chl/repos","events_url":"https://api.github.com/users/pe1chl/events{/privacy}","received_events_url":"https://api.github.com/users/pe1chl/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/sm0svx/svxlink/labels/C:%20SvxLink%20Server%20Core","name":"C: SvxLink Server Core","color":"bfd4f2"},{"url":"https://api.github.com/repos/sm0svx/svxlink/labels/T:%20defect","name":"T: defect","color":"f7c6c7"}],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":9,"created_at":"2014-09-01T17:21:10Z","updated_at":"2015-04-26T21:06:47Z","closed_at":"2015-04-26T21:02:44Z","body":"Sometimes when we use \"service svxlink restart\" the svxlink program is running twice after the restart.\r\nI found that the init script (Debian version) sends it a TERM signal, which is detected OK and the program\r\nstarts to shutdown, but apparently it does not completely exit.   It causes no trouble for the next instance\r\nthat is started after that, but it remains in the process list and it is detected by our nagios monitoring that\r\nchecks if one and only one instance of svxlink is running on the system.\r\n\r\nWhen this occurs, I see that the old instance has a child process which is a \"sh\", and is in Z (zombie) state.\r\nProbably the result of running an external program, and not correctly waiting for the child.\r\nMaybe it is related to the QSO recorder being running the ENCODER_CMD at that time?\r\n\r\nI have not yet checked what the program is doing when this occurs, only what the process structure\r\nwas.  When it happens again I will do an strace."},"comment":{"url":"https://api.github.com/repos/sm0svx/svxlink/issues/comments/96435271","html_url":"https://github.com/sm0svx/svxlink/issues/95#issuecomment-96435271","issue_url":"https://api.github.com/repos/sm0svx/svxlink/issues/95","id":96435271,"user":{"login":"pe1chl","id":8188892,"avatar_url":"https://avatars.githubusercontent.com/u/8188892?v=3","gravatar_id":"","url":"https://api.github.com/users/pe1chl","html_url":"https://github.com/pe1chl","followers_url":"https://api.github.com/users/pe1chl/followers","following_url":"https://api.github.com/users/pe1chl/following{/other_user}","gists_url":"https://api.github.com/users/pe1chl/gists{/gist_id}","starred_url":"https://api.github.com/users/pe1chl/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pe1chl/subscriptions","organizations_url":"https://api.github.com/users/pe1chl/orgs","repos_url":"https://api.github.com/users/pe1chl/repos","events_url":"https://api.github.com/users/pe1chl/events{/privacy}","received_events_url":"https://api.github.com/users/pe1chl/received_events","type":"User","site_admin":false},"created_at":"2015-04-26T21:06:47Z","updated_at":"2015-04-26T21:06:47Z","body":"It could also have been cause by build errors on our systems.  It appears that switching from the old make to cmake without cleaning the directory causes some issues.  I noticed it when the version number of the built program was still old after an update.  Removed the entire directory and did a new git clone a week or two ago.  Also removed all old traces before re-installing it."}}