summaryrefslogtreecommitdiffstats
path: root/usr.bin/tmux/tmux.c
diff options
context:
space:
mode:
authornicm <nicm@openbsd.org>2013-04-24 09:52:54 +0000
committernicm <nicm@openbsd.org>2013-04-24 09:52:54 +0000
commitbe2adc8d83fea254ed38697f5d81723c72bf3e3b (patch)
tree84ba24044aaac306c6c41283dae5c0456e3cb684 /usr.bin/tmux/tmux.c
parentWhen attaching disks, feed the disklabel's checksum to (diff)
downloadwireguard-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