Skip to content

Terminate non-persistent children when the host exits - #206

Open
Boulea7 wants to merge 1 commit into
tinylibs:mainfrom
Boulea7:fix/nonpersistent-child-lifetime
Open

Boulea7 wants to merge 1 commit into
tinylibs:mainfrom
Boulea7:fix/nonpersistent-child-lifetime

Conversation

@Boulea7

@Boulea7 Boulea7 commented Dec 2, 2026

Copy link
Copy Markdown

Fixes #11.

A child started with the default persist: false can keep running after its host exits. This change kills active direct children on normal exit or an unhandled SIGHUP, SIGINT or SIGTERM. Hosts with their own signal handlers retain control of shutdown, and persist: true lets children continue independently.

I couldn't verify native Windows shutdown behavior.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

cleanup non-persistent processes on exit

1 participant