Repository navigation
Conversation
alvarosth
force-pushed
the
pam-subprocess-parent-death
branch
from
October 3, 2026 21:19
31fc94e to
0d79217
Compare
Member
|
Crash/restart intentionally does not change PPID. Better approaches might be to
Then just unset the signal handlers from the parent process to get rid of crash handling in the subprocess. |
outfoxxed
force-pushed
the
master
branch
2 times, most recently
from
October 6, 2026 04:21
72a1ce2 to
11ca60b
Compare
alvarosth
force-pushed
the
pam-subprocess-parent-death
branch
from
October 6, 2026 18:32
0d79217 to
05fd195
Compare
Author
|
@outfoxxed You were right; I reproduced the GUI-thread crash case. I went with your first suggestion: a dedicated pipe whose last write end closing signals the helper. The handler reset follows exec's rules: caught signals return to default, ignored signals stay ignored. The destructor's existing kill stays. |
This was referenced Oct 6, 2026
alvarosth
force-pushed
the
pam-subprocess-parent-death
branch
from
October 18, 2026 15:57
05fd195 to
ce4c296
Compare
outfoxxed
force-pushed
the
master
branch
2 times, most recently
from
October 22, 2026 06:48
bf6302e to
9b0f339
Compare
alvarosth
force-pushed
the
pam-subprocess-parent-death
branch
from
October 28, 2026 14:30
ce4c296 to
394bf0b
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Describe your changes
PAM helpers now die when the shell's end of a dedicated pipe closes, covering shell death and an in-place crash relaunch. Helpers reset inherited signal handlers as exec would, so a PAM module crash no longer relaunches the shell. This replaces the parent-death signal and PPID check.
Fixes #1249
Details and decisions
F_SETSIGwithSIGKILL, which a PAM module cannot block or catch.SIGIOhandler because it has noF_SETSIGand ignoresSIGIOby default.Open concerns
Participation
I'll follow up on review feedback.