summaryrefslogtreecommitdiff
path: root/usr.bin/getconf
diff options
context:
space:
mode:
authorNicholas Marriott <nicm@cvs.openbsd.org>2013-04-24 09:52:55 +0000
committerNicholas Marriott <nicm@cvs.openbsd.org>2013-04-24 09:52:55 +0000
commitc498326329acbd7489c0d49fc52aa934fc02560c (patch)
treee6a2236735199bd55e727eacd7d3fc0d30ba07f7 /usr.bin/getconf
parente6d151cfc0936be5a5f780959d71b0a30a26d2ac (diff)
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/getconf')
0 files changed, 0 insertions, 0 deletions