home *** CD-ROM | disk | FTP | other *** search
/ ftp.shrubbery.net / 2015-02-07.ftp.shrubbery.net.tar / ftp.shrubbery.net / pub / rancid / expect-hack1 < prev    next >
Text File  |  2005-06-20  |  402b  |  14 lines

  1. *** exp_chan.c.FCS    Tue Aug 14 16:55:54 2001
  2. --- exp_chan.c    Tue Aug 14 16:59:25 2001
  3. ***************
  4. *** 119,124 ****
  5. --- 119,125 ----
  6.        * nonblocking, the read will never block.
  7.        */
  8.  
  9. + fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK);
  10.       bytesRead = read(esPtr->fdin, buf, (size_t) toRead);
  11.       /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/
  12.       if (bytesRead > -1) {
  13.  
  14.