Return to monitor.c CVS log | Up to [local] / src / usr.bin / ssh |
version 1.211, 2020/07/05 23:59:45 | version 1.212, 2020/07/07 02:47:21 | ||
---|---|---|---|
|
|
||
if (fd0 != 0) | if (fd0 != 0) | ||
error("%s: fd0 %d != 0", __func__, fd0); | error("%s: fd0 %d != 0", __func__, fd0); | ||
/* only need pty master side */ | /* slave side of pty is not needed */ | ||
close(s->ttyfd); | close(s->ttyfd); | ||
s->ttyfd = s->ptyfd; | s->ttyfd = s->ptyfd; | ||
/* no need to dup() because nobody closes ptyfd */ | /* no need to dup() because nobody closes ptyfd */ |