Return to sshpty.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.30, 2015/07/30 23:09:15 | version 1.31, 2016/11/29 03:54:50 | ||
---|---|---|---|
|
|
||
} | } | ||
} | } | ||
} | } | ||
/* Disconnect from the controlling tty. */ | |||
void | |||
disconnect_controlling_tty(void) | |||
{ | |||
int fd; | |||
if ((fd = open(_PATH_TTY, O_RDWR | O_NOCTTY)) >= 0) { | |||
(void) ioctl(fd, TIOCNOTTY, NULL); | |||
close(fd); | |||
} | |||
} |