{"id":16649996,"url":"https://github.com/mosquito/forkme","last_synced_at":"2026-05-23T06:31:16.728Z","repository":{"id":66117656,"uuid":"65225979","full_name":"mosquito/forkme","owner":"mosquito","description":null,"archived":false,"fork":false,"pushed_at":"2018-07-23T13:13:00.000Z","size":10,"stargazers_count":2,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-12-27T15:58:52.661Z","etag":null,"topics":["fork","posix","python","unix"],"latest_commit_sha":null,"homepage":null,"language":"Python","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/mosquito.png","metadata":{"files":{"readme":"README.rst","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":"2016-08-08T17:47:10.000Z","updated_at":"2019-01-30T16:54:37.000Z","dependencies_parsed_at":"2023-02-20T19:45:35.399Z","dependency_job_id":null,"html_url":"https://github.com/mosquito/forkme","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/mosquito/forkme","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosquito%2Fforkme","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosquito%2Fforkme/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosquito%2Fforkme/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosquito%2Fforkme/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mosquito","download_url":"https://codeload.github.com/mosquito/forkme/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mosquito%2Fforkme/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33385119,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-23T04:15:53.637Z","status":"ssl_error","status_checked_at":"2026-05-23T04:15:53.242Z","response_time":53,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["fork","posix","python","unix"],"created_at":"2024-10-12T09:14:49.263Z","updated_at":"2026-05-23T06:31:16.707Z","avatar_url":"https://github.com/mosquito.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ForkMe\n======\n\nFork your proccess like a boss\n\n.. code-block:: python\n\n    import forkme\n    import logging\n    import os\n    from time import sleep\n\n\n    logging.basicConfig(level=logging.DEBUG)\n\n\n    def main():\n        print(\"Master proccess has PID: {0}\".format(os.getpid()))\n        forkme.fork(4)\n        print(\n            \"Proceess #{id} has PID: {pid}\".format(\n                id=forkme.get_id(),\n                pid=os.getpid()\n            )\n        )\n        sleep(1)\n\n\n    if __name__ == '__main__':\n        main()\n\n\nThis code makes 4 forks. When you try to run it you will see something like this ::\n\n    Master proccess has PID: 7437\n    INFO:forkme:Starting 4 processes\n    Proceess #2 has PID: 7440\n    Proceess #1 has PID: 7439\n    Proceess #3 has PID: 7441\n    Proceess #0 has PID: 7438\n    INFO:forkme:Child with PID: 7439 Number: 1 exited normally\n    INFO:forkme:Child with PID: 7441 Number: 3 exited normally\n    INFO:forkme:Child with PID: 7440 Number: 2 exited normally\n    INFO:forkme:Child with PID: 7438 Number: 0 exited normally\n\n\nForkme will be control forks. When subprocess will be killed or will exit with \nnon-zero code it will be restarted immediately. e.g.::\n\n    Master proccess has PID: 7579\n    INFO:forkme:Starting 4 processes\n    Proceess #0 has PID: 7580\n    Proceess #1 has PID: 7581\n    Proceess #2 has PID: 7582\n    Proceess #3 has PID: 7583\n    WARNING:forkme:Child with PID: 7580 Number: 0 killed by signal 9, restarting\n    Proceess #0 has PID: 7584\n    INFO:forkme:Child with PID: 7581 Number: 1 exited normally\n    INFO:forkme:Child with PID: 7582 Number: 2 exited normally\n    INFO:forkme:Child with PID: 7583 Number: 3 exited normally\n    INFO:forkme:Child with PID: 7584 Number: 0 exited normally\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosquito%2Fforkme","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmosquito%2Fforkme","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmosquito%2Fforkme/lists"}