Exit(n) int n;
Exit(int n)
Exit(n)	int n;{	register TScreen *screen = &term->screen;        int pty = term->screen.respond;  /* file descriptor of pty */        close(pty); /* close explicitly to avoid race with slave side */#ifdef ALLOWLOGGING	if(screen->logging)		CloseLog(screen);#endif	if (!am_slave) {		/* restore ownership of tty and pty */		chown (ttydev, 0, 0);		chown (ptydev, 0, 0);		/* restore modes of tty and pty */		chmod (ttydev, 0666);		chmod (ptydev, 0666);	}	exit(n);	SIGNAL_RETURN;}