CVSROOT: /cvs Module name: src Changes by: s...@cvs.openbsd.org 2015/07/20 16:28:57
Modified files: sys/sys : tty.h sys/kern : tty.c Log message: Fix tty hiwat handling a bit - Introduce new defines TTHIWATMINSPACE, TTMINHIWAT for some magic values that are used in tty.c. - Remove hiwat adjustments in ttwrite(). This fixes this codepath not being interrupt safe. - Change ttysetwater() to keep at least TTHIWATMINSPACE space above the high water mark. This makes it consistent with ttycheckoutq(). Without this change, the hiwat adjustment change above causes deadlocks in pty. ok kspillner@ commit it now deraadt@