[PATCH] tty: update the tty layer to work with struct pid