Fix another race in ^T. ttyprintf() can block, during which time the
authorMatthew Dillon <dillon@dragonflybsd.org>
Mon, 17 May 2004 02:44:31 +0000 (02:44 +0000)
committerMatthew Dillon <dillon@dragonflybsd.org>
Mon, 17 May 2004 02:44:31 +0000 (02:44 +0000)
commit8dda877a95e7e378260506979910e24cd5573835
tree0f63c64d48c5803657b3fd548d7bbf7400d42e5d
parenta8f70ff21e2ea644b109f4ecb198b6cfa6fef8dc
Fix another race in ^T.  ttyprintf() can block, during which time the
pointers passed to it may become invalid.  An interrupt can unblock a
process making the p_wmesg (p_thread->td_wmesg) reference either invalid
or cause it to return NULL in between the check and the ttyprintf().
sys/kern/tty.c