[BACK]Return to sshpty.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / ssh

Diff for /src/usr.bin/ssh/sshpty.c between version 1.30 and 1.31

version 1.30, 2015/07/30 23:09:15 version 1.31, 2016/11/29 03:54:50
Line 179 
Line 179 
                 }                  }
         }          }
 }  }
   
   /* 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);
           }
   }

Legend:
Removed from v.1.30  
changed lines
  Added in v.1.31