{"id":24649117,"url":"https://github.com/ow2-proactive/process-tree-killer","last_synced_at":"2025-05-13T11:15:15.293Z","repository":{"id":32899361,"uuid":"36494037","full_name":"ow2-proactive/process-tree-killer","owner":"ow2-proactive","description":"Process Tree Killer for Java, extracted from Jenkins","archived":false,"fork":false,"pushed_at":"2024-10-04T10:04:28.000Z","size":111,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-05-13T11:14:59.355Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ow2-proactive.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-05-29T09:17:49.000Z","updated_at":"2024-10-04T10:04:32.000Z","dependencies_parsed_at":"2022-09-05T22:22:10.631Z","dependency_job_id":null,"html_url":"https://github.com/ow2-proactive/process-tree-killer","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fprocess-tree-killer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fprocess-tree-killer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fprocess-tree-killer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ow2-proactive%2Fprocess-tree-killer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ow2-proactive","download_url":"https://codeload.github.com/ow2-proactive/process-tree-killer/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253929377,"owners_count":21985804,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-01-25T17:15:48.854Z","updated_at":"2025-05-13T11:15:14.988Z","avatar_url":"https://github.com/ow2-proactive.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"# process-tree-killer\n\n[![Build Status](http://jenkins.activeeon.com/buildStatus/icon?job=process-tree-killer)](http://jenkins.activeeon.com/job/process-tree-killer/)\n\nProcess Tree Killer for Java, extracted from Jenkins (commit 9c443c8d5bafd63fce574f6d0cf400cd8fe1f124)\n\nThe trick that is used to kill a process including its children is to tag them using an environment variable.\n\n## Usage\n\n```java\nProcessBuilder pb = new ProcessBuilder(\"sleep\", \"10000\");\npb.environment().put(\"PTK_COOKIE\", \"killme\");\n\nProcess process = pb.start();\n\nProcessTree.get().killAll(singletonMap(\"PTK_COOKIE\", \"killme\"));\n```\n## Acknowledgements\n\nThanks to [Jenkins](https://github.com/jenkinsci/jenkins) and Kohsuke Kawaguchi.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fow2-proactive%2Fprocess-tree-killer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fow2-proactive%2Fprocess-tree-killer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fow2-proactive%2Fprocess-tree-killer/lists"}