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 process tracking when threads change their COMM value #1298

Merged
merged 2 commits into from Jun 4, 2019

Conversation

pqarmitage
Copy link
Collaborator

Issue #1291 identified a segfault when keepalived was monitoring the bgpd process and frr was stopped and restarted (causing bgpd to stop and restart). The pull request resolves the segfault.

prctl(PR_SET_NAME) is a per thread property, not a per process
property, so when a PROC_EVENT_COMM event is received, we need to
check that the tid == pid, so ensure that only the main (initial)
thread that COMM changes are considered for.

Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
Signed-off-by: Quentin Armitage <quentin@armitage.org.uk>
@pqarmitage pqarmitage merged commit c5aecf3 into acassen:master Jun 4, 2019
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.

None yet

1 participant