Use the existing "tty_sem" to protect against the process tty changes too.
Attach a file by drag & drop or click to upload