Prior to changing tty to r/w