{"id":13640398,"url":"https://github.com/nathan-osman/hang","last_synced_at":"2025-08-03T00:33:36.296Z","repository":{"id":143058378,"uuid":"105103120","full_name":"nathan-osman/hang","owner":"nathan-osman","description":"Extremely simple Linux application that hangs until a signal is received.","archived":false,"fork":false,"pushed_at":"2018-09-27T03:21:53.000Z","size":14,"stargazers_count":153,"open_issues_count":1,"forks_count":17,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-04-15T16:52:50.540Z","etag":null,"topics":["assembly","linux","signal"],"latest_commit_sha":null,"homepage":null,"language":"Assembly","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/nathan-osman.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,"governance":null,"roadmap":null,"authors":null}},"created_at":"2017-09-28T04:42:49.000Z","updated_at":"2025-04-07T06:29:45.000Z","dependencies_parsed_at":null,"dependency_job_id":"49b76c59-cae6-4fe7-8575-1879e5f88243","html_url":"https://github.com/nathan-osman/hang","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/nathan-osman/hang","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-osman%2Fhang","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-osman%2Fhang/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-osman%2Fhang/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-osman%2Fhang/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nathan-osman","download_url":"https://codeload.github.com/nathan-osman/hang/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nathan-osman%2Fhang/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264566071,"owners_count":23629103,"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":["assembly","linux","signal"],"created_at":"2024-08-02T01:01:10.803Z","updated_at":"2025-07-10T10:32:15.027Z","avatar_url":"https://github.com/nathan-osman.png","language":"Assembly","funding_links":[],"categories":["Assembly"],"sub_categories":[],"readme":"## hang\n\nThis application does absolutely nothing. Once started, it will hang until a signal is received.\n\n### Wait, what?\n\nDespite its seemingly useless behavior, this application does serve an important purpose for me. I am using [caddy-docker](https://github.com/nathan-osman/caddy-docker) to monitor containers running in Docker. In order for caddy-docker to route requests to a container, it must remain running. Some containers don't actually do anything and exist solely to configure caddy-docker. However, they must remain running.\n\nThat's where this application comes in.\n\n### Why assembly?\n\nThis application must not link against any libraries, ensuring it has no dependencies. That is easiest to do in assembly. The entirety of the application's functionality is to hang until a signal is received and this can be done easily with syscalls.\n\nAlso, where else can you find a Docker container that occupies less than 1 KB on disk?\n\n### How do I use this?\n\nAssuming you have GNU Make and Docker installed, simply run:\n\n    make\n\nYou will have a new binary named `hang` and it will be really small.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan-osman%2Fhang","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnathan-osman%2Fhang","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnathan-osman%2Fhang/lists"}