When calling TIOCSCTTY, it helps to pass it an fd that's still open,