diff options
author | 2013-04-24 09:52:54 +0000 | |
---|---|---|
committer | 2013-04-24 09:52:54 +0000 | |
commit | be2adc8d83fea254ed38697f5d81723c72bf3e3b (patch) | |
tree | 84ba24044aaac306c6c41283dae5c0456e3cb684 /usr.bin/tmux/tmux.c | |
parent | When attaching disks, feed the disklabel's checksum to (diff) | |
download | wireguard-openbsd-be2adc8d83fea254ed38697f5d81723c72bf3e3b.tar.xz wireguard-openbsd-be2adc8d83fea254ed38697f5d81723c72bf3e3b.zip |
When a ucom(4) is removed, it frees the tty with ttyfree(). However if
anyone is waiting with kqueue their knotes may still have a reference to
the tty and later try to use it in the filt_tty* functions.
To avoid this, walk the knotes in ttyfree(), remove them from the tty's
list and invalidate them by setting kn_hook to NODEV. The filter
functions can then check for this and safely ignore the knotes.
ok tedu matthieu
Diffstat (limited to 'usr.bin/tmux/tmux.c')
0 files changed, 0 insertions, 0 deletions