{"id":18151242,"url":"https://github.com/msantos/pdeathsigexec-rs","last_synced_at":"2025-04-06T23:29:17.459Z","repository":{"id":191614524,"uuid":"680096188","full_name":"msantos/pdeathsigexec-rs","owner":"msantos","description":"signal process when parent exits","archived":false,"fork":false,"pushed_at":"2025-03-03T12:14:38.000Z","size":9,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-03T13:25:41.749Z","etag":null,"topics":["exec","prctl","procctl","signal"],"latest_commit_sha":null,"homepage":null,"language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"isc","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/msantos.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-08-18T10:30:16.000Z","updated_at":"2025-03-03T12:14:41.000Z","dependencies_parsed_at":"2025-02-13T05:38:36.214Z","dependency_job_id":null,"html_url":"https://github.com/msantos/pdeathsigexec-rs","commit_stats":null,"previous_names":["msantos/pdeathsigexec-rs"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fpdeathsigexec-rs","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fpdeathsigexec-rs/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fpdeathsigexec-rs/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/msantos%2Fpdeathsigexec-rs/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/msantos","download_url":"https://codeload.github.com/msantos/pdeathsigexec-rs/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247568714,"owners_count":20959752,"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":["exec","prctl","procctl","signal"],"created_at":"2024-11-02T01:07:02.626Z","updated_at":"2025-04-06T23:29:17.439Z","avatar_url":"https://github.com/msantos.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SYNOPSIS\n\npdeathsigexec *cmd* *...*\n\n# DESCRIPTION\n\npdeathsigexec: signal process when parent exits\n\nSubprocesses orphaned by a parent process's exit are typically reparented\nto init (PID 1) and continue running. `pdeathsigexec` ensures a process\nreceives a signal upon its parent's termination.\n\nThe \"signal on parent termination\" behaviour applies\nto the executed process only and not descendents\n([prctl(2)](https://man7.org/linux/man-pages/man2/prctl.2.html)):\n\n\u003e The parent-death signal setting is cleared for the child of a fork(2).\n\u003e It is also (since Linux 2.4.36 / 2.6.23) cleared when  executing  a\n\u003e set-user-ID or set-group-ID binary, or a binary that has associated\n\u003e capabilities (see capabilities(7)); otherwise, this value is preserved\n\u003e across execve(2).\n\n# EXAMPLES\n\n```\n$ sh -c \"sleep inf\" \u0026\n[1] 25880\n$ kill -9 25880\n$ pgrep -fa sleep\n25882 sleep inf\n```\n\n## pdeathsigexec\n\n```\n$ sh -c \"pdeathsigexec sleep inf\" \u0026\n[1] 25926\n$ kill -9 25926\n$ pgrep -fa sleep\n\u003cno output\u003e\n```\n\n# Build\n\n```\ncargo build\n```\n\n# OPTIONS\n\n## pdeathsigexec\n\n-s/--signal\n: set the termination signal (default `9` (SIGKILL))\n\n# ENVIRONMENT VARIABLES\n\nNone.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Fpdeathsigexec-rs","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmsantos%2Fpdeathsigexec-rs","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmsantos%2Fpdeathsigexec-rs/lists"}