{"id":16105922,"url":"https://github.com/kirill-scherba/subprocess","last_synced_at":"2026-04-14T00:03:23.676Z","repository":{"id":155760847,"uuid":"632326474","full_name":"kirill-scherba/subprocess","owner":"kirill-scherba","description":"Kill process and all child processes it spawned in Linux or Windows","archived":false,"fork":false,"pushed_at":"2023-04-25T08:20:28.000Z","size":12,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-02-12T08:58:53.709Z","etag":null,"topics":["child-processes","go","golang","kill","killall","linux","process","subprocess","windows"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/kirill-scherba.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-04-25T07:18:58.000Z","updated_at":"2024-05-30T00:24:07.000Z","dependencies_parsed_at":null,"dependency_job_id":"fcef40a8-5027-43d7-9057-5cda5faca15c","html_url":"https://github.com/kirill-scherba/subprocess","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirill-scherba%2Fsubprocess","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirill-scherba%2Fsubprocess/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirill-scherba%2Fsubprocess/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kirill-scherba%2Fsubprocess/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kirill-scherba","download_url":"https://codeload.github.com/kirill-scherba/subprocess/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247427012,"owners_count":20937214,"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":["child-processes","go","golang","kill","killall","linux","process","subprocess","windows"],"created_at":"2024-10-09T19:11:13.965Z","updated_at":"2026-04-14T00:03:23.635Z","avatar_url":"https://github.com/kirill-scherba.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Subprocess\n\nThis go package used to Kills process and all child processes it spawned in Linux or Windows.\n\n[![GoDoc](https://godoc.org/github.com/kirill-scherba/subprocess?status.svg)](https://godoc.org/github.com/kirill-scherba/subprocess/)\n[![Go Report Card](https://goreportcard.com/badge/github.com/kirill-scherba/subprocess)](https://goreportcard.com/report/github.com/kirill-scherba/subprocess)\n\nThe main idea behind creating this package is that the Windows code part is\nvery large and it is not practical to copy this code to every project.\n\n## Usage example\n\n```go\npackage main\n\nimport \"kirill-scherba/subprocess\" \n\nfunc main() {\n\n    // Create some process, f.e. run exec.Run() function which execute buch \n    // file with subprocesses\n    // \n    // var cmd *exec.Cmd\n    // var err error\n    // cmd, err = exec.Run(\"executable_name\", \"parameter\")\n    // ...\n    // Use the KillProcessTree function when you want stop execution started \n    // process and all its child process.\n    //\n\n    // Kill the process and all its children\n    err = subprocess.KillProcessTree(cmd.Process.Pid)\n    if err != nil {\n        return\n    }\n\n    // ...\n\n}\n```\n\n## Licence\n\n[BSD](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirill-scherba%2Fsubprocess","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkirill-scherba%2Fsubprocess","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkirill-scherba%2Fsubprocess/lists"}