{"action":"created","comment":{"url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments/30015070","id":30015070,"diff_hunk":"@@ -167,12 +160,23 @@ public void onClosed(Channel channel, IOException cause) {\n             LOGGER.log(Level.SEVERE, msg, e);\n             e.printStackTrace(listener.error(msg));\n \n-            if(_proc!=null)\n+            if(_proc!=null) {\n+                reportProcessTerminated(_proc, listener);\n                 try {\n                     ProcessTree.get().killAll(_proc, _cookie);\n                 } catch (InterruptedException x) {\n                     x.printStackTrace(listener.error(Messages.ComputerLauncher_abortedLaunch()));\n                 }\n+            }\n+        }\n+    }\n+\n+    private static void reportProcessTerminated(Process proc, TaskListener listener) {\n+        try {\n+            int exitCode = proc.exitValue();\n+            listener.error(\"Process terminated with exit code \" + exitCode);","path":"core/src/main/java/hudson/slaves/CommandLauncher.java","position":35,"original_position":35,"commit_id":"1070194ca5a1ee40f5d94024c5b58573e2bd7d70","original_commit_id":"1070194ca5a1ee40f5d94024c5b58573e2bd7d70","user":{"login":"olivergondza","id":206841,"avatar_url":"https://avatars.githubusercontent.com/u/206841?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergondza","html_url":"https://github.com/olivergondza","followers_url":"https://api.github.com/users/olivergondza/followers","following_url":"https://api.github.com/users/olivergondza/following{/other_user}","gists_url":"https://api.github.com/users/olivergondza/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergondza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergondza/subscriptions","organizations_url":"https://api.github.com/users/olivergondza/orgs","repos_url":"https://api.github.com/users/olivergondza/repos","events_url":"https://api.github.com/users/olivergondza/events{/privacy}","received_events_url":"https://api.github.com/users/olivergondza/received_events","type":"User","site_admin":false},"body":"I do not think it does, it is the process Jenkins started to launch slave.","created_at":"2015-05-11T06:21:02Z","updated_at":"2015-05-11T06:21:02Z","html_url":"https://github.com/jenkinsci/jenkins/pull/1688#discussion_r30015070","pull_request_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688","_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments/30015070"},"html":{"href":"https://github.com/jenkinsci/jenkins/pull/1688#discussion_r30015070"},"pull_request":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688"}}},"pull_request":{"url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688","id":34824892,"html_url":"https://github.com/jenkinsci/jenkins/pull/1688","diff_url":"https://github.com/jenkinsci/jenkins/pull/1688.diff","patch_url":"https://github.com/jenkinsci/jenkins/pull/1688.patch","issue_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1688","number":1688,"state":"open","locked":false,"title":"Report launcher exited before establishing the channel","user":{"login":"olivergondza","id":206841,"avatar_url":"https://avatars.githubusercontent.com/u/206841?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergondza","html_url":"https://github.com/olivergondza","followers_url":"https://api.github.com/users/olivergondza/followers","following_url":"https://api.github.com/users/olivergondza/following{/other_user}","gists_url":"https://api.github.com/users/olivergondza/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergondza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergondza/subscriptions","organizations_url":"https://api.github.com/users/olivergondza/orgs","repos_url":"https://api.github.com/users/olivergondza/repos","events_url":"https://api.github.com/users/olivergondza/events{/privacy}","received_events_url":"https://api.github.com/users/olivergondza/received_events","type":"User","site_admin":false},"body":"Provide human readable message not only when channel broke but even if Jenkins fails to establish one.","created_at":"2015-05-06T14:54:18Z","updated_at":"2015-05-11T06:21:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"99c6631f3ae2c22d615f4f9e3523611bd674946a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688/commits","review_comments_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688/comments","review_comment_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/1688/comments","statuses_url":"https://api.github.com/repos/jenkinsci/jenkins/statuses/1070194ca5a1ee40f5d94024c5b58573e2bd7d70","head":{"label":"olivergondza:report-launcher-exited","ref":"report-launcher-exited","sha":"1070194ca5a1ee40f5d94024c5b58573e2bd7d70","user":{"login":"olivergondza","id":206841,"avatar_url":"https://avatars.githubusercontent.com/u/206841?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergondza","html_url":"https://github.com/olivergondza","followers_url":"https://api.github.com/users/olivergondza/followers","following_url":"https://api.github.com/users/olivergondza/following{/other_user}","gists_url":"https://api.github.com/users/olivergondza/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergondza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergondza/subscriptions","organizations_url":"https://api.github.com/users/olivergondza/orgs","repos_url":"https://api.github.com/users/olivergondza/repos","events_url":"https://api.github.com/users/olivergondza/events{/privacy}","received_events_url":"https://api.github.com/users/olivergondza/received_events","type":"User","site_admin":false},"repo":{"id":5356417,"name":"jenkins","full_name":"olivergondza/jenkins","owner":{"login":"olivergondza","id":206841,"avatar_url":"https://avatars.githubusercontent.com/u/206841?v=3","gravatar_id":"","url":"https://api.github.com/users/olivergondza","html_url":"https://github.com/olivergondza","followers_url":"https://api.github.com/users/olivergondza/followers","following_url":"https://api.github.com/users/olivergondza/following{/other_user}","gists_url":"https://api.github.com/users/olivergondza/gists{/gist_id}","starred_url":"https://api.github.com/users/olivergondza/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/olivergondza/subscriptions","organizations_url":"https://api.github.com/users/olivergondza/orgs","repos_url":"https://api.github.com/users/olivergondza/repos","events_url":"https://api.github.com/users/olivergondza/events{/privacy}","received_events_url":"https://api.github.com/users/olivergondza/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/olivergondza/jenkins","description":"Jenkins Continuous Integration Server","fork":true,"url":"https://api.github.com/repos/olivergondza/jenkins","forks_url":"https://api.github.com/repos/olivergondza/jenkins/forks","keys_url":"https://api.github.com/repos/olivergondza/jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/olivergondza/jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/olivergondza/jenkins/teams","hooks_url":"https://api.github.com/repos/olivergondza/jenkins/hooks","issue_events_url":"https://api.github.com/repos/olivergondza/jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/olivergondza/jenkins/events","assignees_url":"https://api.github.com/repos/olivergondza/jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/olivergondza/jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/olivergondza/jenkins/tags","blobs_url":"https://api.github.com/repos/olivergondza/jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/olivergondza/jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/olivergondza/jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/olivergondza/jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/olivergondza/jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/olivergondza/jenkins/languages","stargazers_url":"https://api.github.com/repos/olivergondza/jenkins/stargazers","contributors_url":"https://api.github.com/repos/olivergondza/jenkins/contributors","subscribers_url":"https://api.github.com/repos/olivergondza/jenkins/subscribers","subscription_url":"https://api.github.com/repos/olivergondza/jenkins/subscription","commits_url":"https://api.github.com/repos/olivergondza/jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/olivergondza/jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/olivergondza/jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/olivergondza/jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/olivergondza/jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/olivergondza/jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/olivergondza/jenkins/merges","archive_url":"https://api.github.com/repos/olivergondza/jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/olivergondza/jenkins/downloads","issues_url":"https://api.github.com/repos/olivergondza/jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/olivergondza/jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/olivergondza/jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/olivergondza/jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/olivergondza/jenkins/labels{/name}","releases_url":"https://api.github.com/repos/olivergondza/jenkins/releases{/id}","created_at":"2012-08-09T14:14:09Z","updated_at":"2014-06-24T08:45:44Z","pushed_at":"2015-05-07T13:01:09Z","git_url":"git://github.com/olivergondza/jenkins.git","ssh_url":"git@github.com:olivergondza/jenkins.git","clone_url":"https://github.com/olivergondza/jenkins.git","svn_url":"https://github.com/olivergondza/jenkins","homepage":"http://jenkins-ci.org/","size":85950,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"jenkinsci:master","ref":"master","sha":"f06add2b466280053e52a369c60c21271d03b3fc","user":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"repo":{"id":1103607,"name":"jenkins","full_name":"jenkinsci/jenkins","owner":{"login":"jenkinsci","id":107424,"avatar_url":"https://avatars.githubusercontent.com/u/107424?v=3","gravatar_id":"","url":"https://api.github.com/users/jenkinsci","html_url":"https://github.com/jenkinsci","followers_url":"https://api.github.com/users/jenkinsci/followers","following_url":"https://api.github.com/users/jenkinsci/following{/other_user}","gists_url":"https://api.github.com/users/jenkinsci/gists{/gist_id}","starred_url":"https://api.github.com/users/jenkinsci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jenkinsci/subscriptions","organizations_url":"https://api.github.com/users/jenkinsci/orgs","repos_url":"https://api.github.com/users/jenkinsci/repos","events_url":"https://api.github.com/users/jenkinsci/events{/privacy}","received_events_url":"https://api.github.com/users/jenkinsci/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/jenkinsci/jenkins","description":"Jenkins Continuous Integration Server","fork":true,"url":"https://api.github.com/repos/jenkinsci/jenkins","forks_url":"https://api.github.com/repos/jenkinsci/jenkins/forks","keys_url":"https://api.github.com/repos/jenkinsci/jenkins/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jenkinsci/jenkins/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jenkinsci/jenkins/teams","hooks_url":"https://api.github.com/repos/jenkinsci/jenkins/hooks","issue_events_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/events{/number}","events_url":"https://api.github.com/repos/jenkinsci/jenkins/events","assignees_url":"https://api.github.com/repos/jenkinsci/jenkins/assignees{/user}","branches_url":"https://api.github.com/repos/jenkinsci/jenkins/branches{/branch}","tags_url":"https://api.github.com/repos/jenkinsci/jenkins/tags","blobs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jenkinsci/jenkins/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jenkinsci/jenkins/git/refs{/sha}","trees_url":"https://api.github.com/repos/jenkinsci/jenkins/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jenkinsci/jenkins/statuses/{sha}","languages_url":"https://api.github.com/repos/jenkinsci/jenkins/languages","stargazers_url":"https://api.github.com/repos/jenkinsci/jenkins/stargazers","contributors_url":"https://api.github.com/repos/jenkinsci/jenkins/contributors","subscribers_url":"https://api.github.com/repos/jenkinsci/jenkins/subscribers","subscription_url":"https://api.github.com/repos/jenkinsci/jenkins/subscription","commits_url":"https://api.github.com/repos/jenkinsci/jenkins/commits{/sha}","git_commits_url":"https://api.github.com/repos/jenkinsci/jenkins/git/commits{/sha}","comments_url":"https://api.github.com/repos/jenkinsci/jenkins/comments{/number}","issue_comment_url":"https://api.github.com/repos/jenkinsci/jenkins/issues/comments{/number}","contents_url":"https://api.github.com/repos/jenkinsci/jenkins/contents/{+path}","compare_url":"https://api.github.com/repos/jenkinsci/jenkins/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jenkinsci/jenkins/merges","archive_url":"https://api.github.com/repos/jenkinsci/jenkins/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jenkinsci/jenkins/downloads","issues_url":"https://api.github.com/repos/jenkinsci/jenkins/issues{/number}","pulls_url":"https://api.github.com/repos/jenkinsci/jenkins/pulls{/number}","milestones_url":"https://api.github.com/repos/jenkinsci/jenkins/milestones{/number}","notifications_url":"https://api.github.com/repos/jenkinsci/jenkins/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jenkinsci/jenkins/labels{/name}","releases_url":"https://api.github.com/repos/jenkinsci/jenkins/releases{/id}","created_at":"2010-11-22T21:21:23Z","updated_at":"2015-05-11T05:45:06Z","pushed_at":"2015-05-11T00:55:26Z","git_url":"git://github.com/jenkinsci/jenkins.git","ssh_url":"git@github.com:jenkinsci/jenkins.git","clone_url":"https://github.com/jenkinsci/jenkins.git","svn_url":"https://github.com/jenkinsci/jenkins","homepage":"http://jenkins-ci.org/","size":420012,"stargazers_count":4059,"watchers_count":4059,"language":"Java","has_issues":false,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":1816,"mirror_url":null,"open_issues_count":111,"forks":1816,"open_issues":111,"watchers":4059,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688"},"html":{"href":"https://github.com/jenkinsci/jenkins/pull/1688"},"issue":{"href":"https://api.github.com/repos/jenkinsci/jenkins/issues/1688"},"comments":{"href":"https://api.github.com/repos/jenkinsci/jenkins/issues/1688/comments"},"review_comments":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688/comments"},"review_comment":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jenkinsci/jenkins/pulls/1688/commits"},"statuses":{"href":"https://api.github.com/repos/jenkinsci/jenkins/statuses/1070194ca5a1ee40f5d94024c5b58573e2bd7d70"}}}}