| 1 |
Source: golang-github-ysmood-leakless |
| 2 |
Section: golang |
| 3 |
Maintainer: Debian Go Packaging Team <[email protected]> |
| 4 |
Uploaders: |
| 5 |
Simon Josefsson <[email protected]>, |
| 6 |
Build-Depends: |
| 7 |
debhelper-compat (= 13), |
| 8 |
dh-sequence-golang, |
| 9 |
dpkg-build-api (= 1), |
| 10 |
git, |
| 11 |
golang-any, |
| 12 |
Testsuite: autopkgtest-pkg-go |
| 13 |
Standards-Version: 4.7.4 |
| 14 |
Vcs-Browser: https://salsa.debian.org/go-team/packages/golang-github-ysmood-leakless |
| 15 |
Vcs-Git: https://salsa.debian.org/go-team/packages/golang-github-ysmood-leakless.git |
| 16 |
Homepage: https://github.com/ysmood/leakless |
| 17 |
XS-Go-Import-Path: github.com/ysmood/leakless |
| 18 |
|
| 19 |
Package: golang-github-ysmood-leakless-dev |
| 20 |
Architecture: all |
| 21 |
Multi-Arch: foreign |
| 22 |
Depends: |
| 23 |
${misc:Depends}, |
| 24 |
Description: kill the sub-process when the main process exits (library) |
| 25 |
Golang doesn't provide a way for third-party packages to implicitly |
| 26 |
register a callback when the main process exits to do cleanups. If you |
| 27 |
fail to explicitly add proper code in your main to kill sub-processes |
| 28 |
that are created by third-party packages they may keep running after the |
| 29 |
main process exists or crashes. |
| 30 |
. |
| 31 |
Leakless ensures to kill the sub-process when the main process exits. |
| 32 |
. |
| 33 |
How it works: |
| 34 |
. |
| 35 |
1. Main process outputs a standalone executable file and executes it as |
| 36 |
a guard process. |
| 37 |
2. A TCP connection is created between main process and the guard |
| 38 |
process. |
| 39 |
3. The guard process starts the sub-process. |
| 40 |
4. If the TCP connection is closed, the guard process will kill the sub- |
| 41 |
process. |
| 42 |
. |
| 43 |
This package contains the Go library. |