On Wed, Oct 8, 2008 at 12:04 PM, Lampa <[EMAIL PROTECTED]> wrote: > i think that select() return that was activity on descriptor but > descriptor send eof and fgets when read oef returns NULL (eg. > terminate connection but vpopmaild is still tries reading) > I think you want this 246c246,250 < fgets(ReadBuf,sizeof(ReadBuf),stdin); --- > if (FD_ISSET(0, &rfds)) > { > if (!fgets(ReadBuf,sizeof(ReadBuf),stdin)) > return(-1); > }
!DSPAM:48ecbdf932315724711608!