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

Fix dangling process when terminating a long running process with SIGTERM #72

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

pulasthibandara
Copy link
Contributor

Issue

For long running processes like a web server, the plugin sometimes fails to terminate the running child-process.

Fix: detached: false

As the stdio is inherited, the running console is attached anyway, and detached: false should have no impact other than explicitly binding the lifetime of the child-process to it's parent. https://nodejs.org/api/child_process.html#optionsdetached

@pulasthibandara pulasthibandara changed the title Fix dangling process when terminating a long running process with SIG… Fix dangling process when terminating a long running process with SIGTERM Jan 13, 2025
Copy link

nx-cloud bot commented Jan 13, 2025

View your CI Pipeline Execution ↗ for commit bc2dd9d.

Command Status Duration Result
nx run-many --target=e2e --exclude monodon --pa... ❌ Failed 1m 8s View ↗
nx run-many --target=build,test,lint --exclude ... ✅ Succeeded 17s View ↗

☁️ Nx Cloud last updated this comment at 2025-01-13 21:19:20 UTC

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.

1 participant