{"action":"created","issue":{"url":"https://api.github.com/repos/felixfbecker/php-language-server/issues/106","repository_url":"https://api.github.com/repos/felixfbecker/php-language-server","labels_url":"https://api.github.com/repos/felixfbecker/php-language-server/issues/106/labels{/name}","comments_url":"https://api.github.com/repos/felixfbecker/php-language-server/issues/106/comments","events_url":"https://api.github.com/repos/felixfbecker/php-language-server/issues/106/events","html_url":"https://github.com/felixfbecker/php-language-server/issues/106","id":184468978,"number":106,"title":"The language server should exit if the parent process dies","user":{"login":"kaloyan-raev","id":468091,"avatar_url":"https://avatars.githubusercontent.com/u/468091?v=3","gravatar_id":"","url":"https://api.github.com/users/kaloyan-raev","html_url":"https://github.com/kaloyan-raev","followers_url":"https://api.github.com/users/kaloyan-raev/followers","following_url":"https://api.github.com/users/kaloyan-raev/following{/other_user}","gists_url":"https://api.github.com/users/kaloyan-raev/gists{/gist_id}","starred_url":"https://api.github.com/users/kaloyan-raev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kaloyan-raev/subscriptions","organizations_url":"https://api.github.com/users/kaloyan-raev/orgs","repos_url":"https://api.github.com/users/kaloyan-raev/repos","events_url":"https://api.github.com/users/kaloyan-raev/events{/privacy}","received_events_url":"https://api.github.com/users/kaloyan-raev/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":10,"created_at":"2016-10-21T12:01:05Z","updated_at":"2016-10-22T12:27:46Z","closed_at":null,"body":"According to LSP:\r\n> If the parent process is not alive then the server should exit (see exit notification) its process.\r\n\r\nCurrently if the parent process exits without sending the exit notification, the process of the language server goes in a high CPU loop. While experimenting, I often fall in this situation and have to kill the zombie processes manually."},"comment":{"url":"https://api.github.com/repos/felixfbecker/php-language-server/issues/comments/255525584","html_url":"https://github.com/felixfbecker/php-language-server/issues/106#issuecomment-255525584","issue_url":"https://api.github.com/repos/felixfbecker/php-language-server/issues/106","id":255525584,"user":{"login":"MadHed","id":2094371,"avatar_url":"https://avatars.githubusercontent.com/u/2094371?v=3","gravatar_id":"","url":"https://api.github.com/users/MadHed","html_url":"https://github.com/MadHed","followers_url":"https://api.github.com/users/MadHed/followers","following_url":"https://api.github.com/users/MadHed/following{/other_user}","gists_url":"https://api.github.com/users/MadHed/gists{/gist_id}","starred_url":"https://api.github.com/users/MadHed/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MadHed/subscriptions","organizations_url":"https://api.github.com/users/MadHed/orgs","repos_url":"https://api.github.com/users/MadHed/repos","events_url":"https://api.github.com/users/MadHed/events{/privacy}","received_events_url":"https://api.github.com/users/MadHed/received_events","type":"User","site_admin":false},"created_at":"2016-10-22T12:27:46Z","updated_at":"2016-10-22T12:27:46Z","body":"@felixfbecker @kaloyan-raev \r\nI found this comment in the php docs. http://php.net/manual/de/function.fwrite.php#96951\r\nSo basically, in case of a closed stream fwrite will just keep returning 0 forever and false doesn't really happen unlike what the docs would make us believe :(\r\n\r\nI would like to see if we can detect the closed stream via http://php.net/manual/en/function.stream-get-meta-data.php but I will only have time to look into this tomorrow."}}
{"actor":{"display_login":"MadHed"}}