{"id":17700650,"url":"https://github.com/cdown/stopthread","last_synced_at":"2025-03-31T02:28:16.808Z","repository":{"id":142271627,"uuid":"176768725","full_name":"cdown/stopthread","owner":"cdown","description":"A small program to stop individual threads from executing, instead of the whole thread group.","archived":false,"fork":false,"pushed_at":"2019-03-20T16:11:11.000Z","size":2,"stargazers_count":4,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-06T07:30:40.930Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cdown.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2019-03-20T15:56:35.000Z","updated_at":"2022-05-10T07:49:57.000Z","dependencies_parsed_at":"2023-04-05T03:47:34.786Z","dependency_job_id":null,"html_url":"https://github.com/cdown/stopthread","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fstopthread","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fstopthread/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fstopthread/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cdown%2Fstopthread/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cdown","download_url":"https://codeload.github.com/cdown/stopthread/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246405898,"owners_count":20771846,"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":"2024-10-24T17:42:43.387Z","updated_at":"2025-03-31T02:28:16.788Z","avatar_url":"https://github.com/cdown.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"A small program to stop individual threads from executing, instead of the whole\nthread group.\n\nThis is needed because SIGSTOP won't work on a single thread (even with\nt(g)kill), because SIGSTOP and other job control-related signals only operate\non a whole thread group. PTRACE_SEIZE + PTRACE_INTERRUPT, while not really\ndesigned for use in this way, are a satisfyingly hacky workaround.\n\nUse like so:\n\n    $ ./stopthread [list of tids]\n\nPress Ctrl-C or send another signal to make the threads in question start\nexecuting again and return to their original state.\n\n**WARNING:**\n\nThis can be used in emergencies to stem bleeding, however, be careful:\n\n1. You must make sure that the threads you want to stop do not hold any\n   synchronisation primitives when stopped. Verify this using tracing first.\n2. If running this on a service which understands admission control, you may\n   need to bump admission control limits to account for the stopped threads,\n   and allow new ones to execute.\n3. If running this on a service which understands I/O gating, you may need to\n   bump I/O gating limits for the use cases the threads you're stopping are\n   classified as, to avoid unintentionally causing throttling for those use\n   cases.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fstopthread","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcdown%2Fstopthread","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcdown%2Fstopthread/lists"}