Skip to content

fix: Killing processes does not take place when they are in D-State#255

Merged
TheWitness merged 1 commit into
developfrom
process-termination
May 29, 2026
Merged

fix: Killing processes does not take place when they are in D-State#255
TheWitness merged 1 commit into
developfrom
process-termination

Conversation

@TheWitness
Copy link
Copy Markdown
Member

This issue occurs after a database restart or when running a systemctl restart flow-capture. There are two change elements. The first is moving the systemd KillMode to mixed which signals the parent with a SIGTERM and children processes with a SIGKILL, and changing the internal signaling process to always use a SIGKILL.

This issue occurs after a database restart or when running a systemctl restart flow-capture.  There are two change elements.  The first is moving the systemd KillMode to mixed which signals the parent with a SIGTERM and children processes with a SIGKILL, and changing the internal signaling process to always use a SIGKILL.
Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates FlowView process termination behavior so service shutdown and parent-driven child cleanup use more forceful process killing, intended to address collectors stuck during database/service restarts.

Changes:

  • Changes the systemd unit from KillMode=process to KillMode=mixed.
  • Changes FlowView child termination from SIGTERM to SIGKILL.
  • Adds a changelog entry for the D-State process termination issue.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.

File Description
service/flow-capture.service Updates systemd kill behavior for the service cgroup.
service/flow-capture Forces child collector termination with SIGKILL.
CHANGELOG.md Records the process-killing issue under develop.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

@TheWitness TheWitness merged commit bf39718 into develop May 29, 2026
1 check passed
@TheWitness TheWitness deleted the process-termination branch May 29, 2026 14:49
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.

4 participants