Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

cleanup non-persistent processes on exit #11

Open
43081j opened this issue Jun 16, 2024 · 1 comment
Open

cleanup non-persistent processes on exit #11

43081j opened this issue Jun 16, 2024 · 1 comment

Comments

@43081j
Copy link
Collaborator

43081j commented Jun 16, 2024

if a process is executed with persist: false (default), we should probably forcefully kill it on exit of the parent process.

this won't be as simple as process.on('exit', onExit) since some things won't fire an exit event (but may fire signal events).

we probably just need to listen on exit and some common signals like SIGTERM.

@jbolda
Copy link

jbolda commented Jul 2, 2024

We have some prior work that may be of value here. These two functions cover posix and even Windows with an attempted graceful shutdown through ctrlc-windows.

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

No branches or pull requests

2 participants