Skip to content

devpts: Check ISIG flag before generating signals for VINTR/VSUSP/VQUIT#12788

Merged
copybara-service[bot] merged 2 commits intomasterfrom
test/cl889267158
Mar 25, 2026
Merged

devpts: Check ISIG flag before generating signals for VINTR/VSUSP/VQUIT#12788
copybara-service[bot] merged 2 commits intomasterfrom
test/cl889267158

Conversation

@copybara-service
Copy link
Copy Markdown

devpts: Check ISIG flag before generating signals for VINTR/VSUSP/VQUIT

Signal characters (Ctrl-C/Z/) unconditionally generated signals regardless of the ISIG flag. Linux only generates these signals when L_ISIG(tty) is true (n_tty.c:n_tty_receive_char_special).

Also fix signal characters leaking into the read buffer — Linux consumes them in n_tty_receive_signal_char() and never delivers them to the reading process.

FUTURE_COPYBARA_INTEGRATE_REVIEW=#12786 from tanyifeng:devpts-isig-check 0a1922c

Signal characters (Ctrl-C/Z/\) unconditionally generated signals
regardless of the ISIG flag. Linux only generates these signals when
L_ISIG(tty) is true (n_tty.c:n_tty_receive_char_special).

Also fix signal characters leaking into the read buffer — Linux
consumes them in n_tty_receive_signal_char() and never delivers
them to the reading process.

Signed-off-by: Tan Yifeng <yiftan@tencent.com>
@copybara-service copybara-service Bot added the exported Issue was exported automatically label Mar 25, 2026
@copybara-service copybara-service Bot merged commit e99e98c into master Mar 25, 2026
@copybara-service copybara-service Bot deleted the test/cl889267158 branch March 25, 2026 18:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

exported Issue was exported automatically

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants