Changeset 1590

Show
Ignore:
Timestamp:
06/20/08 21:26:40 (2 months ago)
Author:
alo
Message:

--

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • cherokee/trunk/ChangeLog

    r1589 r1590  
    112008-06-20  Alvaro Lopez Ortega  <alvaro@alobbs.com> 
     2 
     3        * cherokee/buffer.c (cherokee_buffer_read_from_fd): Added EBADF 
     4        case ('Bad file descriptor'). 
    25 
    36        * cherokee/cherokee-panic: Added support for the 
  • cherokee/trunk/cherokee/buffer.c

    r1580 r1590  
    981981                 */ 
    982982                switch (errno) { 
    983                 case EINTR:      return ret_eagain; 
    984                 case EAGAIN:     return ret_eagain; 
     983                case EINTR: 
     984                case EAGAIN: 
    985985#if defined(EWOULDBLOCK) && (EWOULDBLOCK != EAGAIN) 
    986                 case EWOULDBLOCK:return ret_eagain; 
     986                case EWOULDBLOCK: 
    987987#endif 
    988                 case EPIPE:      return ret_eof; 
    989                 case ECONNRESET: return ret_eof; 
    990                 case EIO:        return ret_error; 
     988                        return ret_eagain; 
     989                case EPIPE: 
     990                case EBADF: 
     991                case ECONNRESET: 
     992                        return ret_eof; 
     993                case EIO: 
     994                        return ret_error; 
    991995                } 
    992996