Skip to content

Return SIGCONT_FG from suspend_pty even when term_raw#1601

Merged
squell merged 1 commit into
trifectatechfoundation:mainfrom
bjorn3:fix_suspend_pty
May 26, 2026
Merged

Return SIGCONT_FG from suspend_pty even when term_raw#1601
squell merged 1 commit into
trifectatechfoundation:mainfrom
bjorn3:fix_suspend_pty

Conversation

@bjorn3
Copy link
Copy Markdown
Collaborator

@bjorn3 bjorn3 commented May 26, 2026

This fixes the code to match og-sudo and fixes a hang in some circumstances.

Fixes #1598

@squell
Copy link
Copy Markdown
Member

squell commented May 26, 2026

Clippy is complaining; and given how this PR changes the code I'm inclined to agree with clippy here. :-)

This fixes the code to match og-sudo and fixes a hang in some
circumstances.
@bjorn3 bjorn3 force-pushed the fix_suspend_pty branch from e238125 to 86107d8 Compare May 26, 2026 10:00
@squell squell added minor minor issue, PR without an issue C-exec Execution component (interfacing with OS) labels May 26, 2026
@bjorn3
Copy link
Copy Markdown
Collaborator Author

bjorn3 commented May 26, 2026

I actually figured I would allow the lint so that it can be written the same way as og-sudo.

@squell
Copy link
Copy Markdown
Member

squell commented May 26, 2026

I would do it differently, but I don't have a strong opinion and am not willing to sacrifice someone at the altar of Clippy, so fine with me.

@squell squell merged commit 59e764c into trifectatechfoundation:main May 26, 2026
20 checks passed
@bjorn3 bjorn3 deleted the fix_suspend_pty branch May 26, 2026 10:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

C-exec Execution component (interfacing with OS) minor minor issue, PR without an issue

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bug: suspend_pty() fails to return SIGCONT_FG when term_raw is already true, causing command to permanently stop

2 participants