Source: golang-github-ysmood-leakless Section: golang Maintainer: Debian Go Packaging Team Uploaders: Simon Josefsson , Build-Depends: debhelper-compat (= 13), dh-sequence-golang, dpkg-build-api (= 1), git, golang-any, Testsuite: autopkgtest-pkg-go Standards-Version: 4.7.4 Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-ysmood-leakless Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-ysmood-leakless.git Homepage: https://github.com/ysmood/leakless XS-Go-Import-Path: github.com/ysmood/leakless Package: golang-github-ysmood-leakless-dev Architecture: all Multi-Arch: foreign Depends: ${misc:Depends}, Description: kill the sub-process when the main process exits (library) Golang doesn't provide a way for third-party packages to implicitly register a callback when the main process exits to do cleanups. If you fail to explicitly add proper code in your main to kill sub-processes that are created by third-party packages they may keep running after the main process exists or crashes. . Leakless ensures to kill the sub-process when the main process exits. . How it works: . 1. Main process outputs a standalone executable file and executes it as a guard process. 2. A TCP connection is created between main process and the guard process. 3. The guard process starts the sub-process. 4. If the TCP connection is closed, the guard process will kill the sub- process. . This package contains the Go library.