Swiftpack.co - leavez/CleanQuit as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by leavez.
leavez/CleanQuit 1.0.11
Kill all children processes when main program ends.
⭐️ 0
🕓 3 years ago
.package(url: "https://github.com/leavez/CleanQuit.git", from: "1.0.11")

CleanQuit

Kill all children processes when main program ends.

Children processes may be create by Process class, which usually used to call shell commands. When the main swift processes killed by ctr+c, the children processes won't be killed and become an orphan process owned by pid 1.

This lib provides a method to kill all direct children processes automatically when process exit or be killed by signal.

Usage

SPM

.package(url: "https://github.com/leavez/CleanQuit.git", from: "1.0.0"),
import CleanQuit

CleanQuit.enable()

GitHub

link
Stars: 0
Last commit: 3 years ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Dependencies

Release Notes

3 years ago

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics