Page MenuHomeFreeBSD

tty: Retire zombie dtrwait
ClosedPublic

Authored by imp on Aug 31 2025, 11:44 PM.
Tags
None
Referenced Files
Unknown Object (File)
Sat, Oct 11, 11:25 PM
Unknown Object (File)
Sat, Oct 11, 11:25 PM
Unknown Object (File)
Sat, Oct 11, 2:07 PM
Unknown Object (File)
Sat, Oct 11, 2:07 PM
Unknown Object (File)
Sat, Oct 11, 2:07 PM
Unknown Object (File)
Sat, Oct 11, 2:07 PM
Unknown Object (File)
Sat, Oct 11, 2:07 PM
Unknown Object (File)
Sat, Oct 11, 5:49 AM

Details

Summary

Nothing uses dtrwait anymore. This was elimianted with the tty mpsafe
rewrite for FreeBSD 8. Only these zombie symbols and functionality
remain. GC them.

Maybe we can gc comcontrol(8) entirely...

Sponsored by: Netflix

Diff Detail

Repository
rG FreeBSD src repository
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

imp requested review of this revision.Aug 31 2025, 11:44 PM
emaste added a subscriber: emaste.
emaste added inline comments.
sys/sys/ttycom.h
72–73

Maybe worth keeping TIOCMGDTRWAIT in the comment about what it was?

This revision is now accepted and ready to land.Sep 2 2025, 3:46 PM
kevans added a subscriber: kevans.

How about we cut a deal: if you slap a deprecation on comcontrol is 15.0, I'll look at adding drainwait configuration to stty(1) to replace it. We don't need to maintain a special command to "control a special tty device" for a configuration item that's implemented in the tty layer.

How about we cut a deal: if you slap a deprecation on comcontrol is 15.0, I'll look at adding drainwait configuration to stty(1) to replace it. We don't need to maintain a special command to "control a special tty device" for a configuration item that's implemented in the tty layer.

Done. Will update.

This revision now requires review to proceed.Sep 2 2025, 9:20 PM

update per review, maybe twice

This revision was not accepted when it landed; it landed in state Needs Review.Sep 3 2025, 5:18 AM
This revision was automatically updated to reflect the committed changes.