K 10 svn:author V 2 ed K 8 svn:date V 27 2009-06-23T21:33:26.814868Z K 7 svn:log V 275 Use dcdwait to block threads to serialize writes. I suspect the usage of bgwait causes a lot of spurious wakeups when threads are blocked in the background, because they will be woken up each time a write() call is performed. Also wakeup dcdwait when the TTY is abandoned. END