clogin, "show controllers" and ios 12.3

Gabriel gabriel at dialupusa.net
Fri Mar 19 18:35:30 UTC 2004


David,

Thanks for the patch; I appreciate that.   And I can see how setting 
non-blocking IO in expect will solve that. :)  That's good.

Thanks,
Gabriel


David Croft wrote:
 > Hi Gabriel,
 >
 > I had this exact same problem. You will need the patch to "expect",
 > which is on http://www.shrubbery.net/rancid/ (which seems to be down
 > right now). Basically it adds a line to exp_chan.c:
 >
 > --- exp_chan.c.orig Thu Jul 31 14:35:07 2003
 > +++ exp_chan.c  Fri Mar 12 22:58:42 2004
 > @@ -119,6 +119,7 @@
 >       * nonblocking, the read will never block.
 >       */
 >
 > + fcntl(esPtr->fdin, F_SETFL, O_NONBLOCK);
 >      bytesRead = read(esPtr->fdin, buf, (size_t) toRead);
 >      /*printf("ExpInputProc: read(%d,,) = %d\r\n",esPtr->fdin,bytesRead);*/
 >      if (bytesRead > -1) {
 >
 > and also rancid version 2.3 if you find it also loops repeatedly around
 > looking for missing commands.
 >
 > David

-- 
Gabriel Cain                                       www.dialupusa.net	
Senior Systems Administrator                   gabriel at dialupusa.net
PGP fingerprint:   C0B4 C6BF 13F5 69D1 3E6B CD7C D4C8 2EA4 2B08 1C6D

		Technology for the sake of business.



More information about the Rancid-discuss mailing list