| 206 | int ptyno; |
| 207 | if (ioctl(ptyfd, TIOCGPTN, &ptyno) == 0) { |
| 208 | struct stat sbuf; |
| 209 | sprintf(tty_slave,"/dev/pts/%d",ptyno); |
| 210 | if (stat(tty_slave,&sbuf) == 0 && S_ISCHR(sbuf.st_mode)) |
| 211 | needGrantPty = false; |
no outgoing calls
no test coverage detected