Skip to content

[net] Don't discard output when ^C typed, use ^C^O instead#2550

Merged
ghaerr merged 1 commit intomasterfrom
telnet
Dec 23, 2025
Merged

[net] Don't discard output when ^C typed, use ^C^O instead#2550
ghaerr merged 1 commit intomasterfrom
telnet

Conversation

@ghaerr
Copy link
Copy Markdown
Owner

@ghaerr ghaerr commented Dec 23, 2025

In telnet, typing ^C sends ^C but no longer discards output (see below). Use ^C^O to terminate the active program and start discarding output. Originally discussed in Mellvik/TLVC#215.

While debugging ghaerr/microwindows#160 which invovled running sl, it was noticed that sl displays output continuously, but also ignores ^C/SIGINT. When a user types ^C to terminate sl, on a shell nothing happens (the sl train keeps moving), but from within a telnet session, the system appears to hang (because of telnet discarding sl's streaming output). It was thus decided that the two-character sequence ^C^O should be used for very fast remote hosts rather than discarding output when programs might ignore SIGINT.

Various other small source cleanups and a volatile jiffies variable access fixed in network inet_write().

@ghaerr ghaerr merged commit 91f479c into master Dec 23, 2025
1 check passed
@ghaerr ghaerr deleted the telnet branch December 23, 2025 04:18
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.

1 participant