Changeset 2153

Show
Ignore:
Timestamp:
04/23/2008 03:05:50 PM (5 months ago)
Author:
stbuehler
Message:

Handle EINTR in mod_cgi during write() (#1640)

Location:
branches/lighttpd-1.4.x
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/lighttpd-1.4.x/NEWS

    r2152 r2153  
    1919  * Fix mod_fastcgi prefix matching: match the prefix always against url, not the absolute filepath (regardless of check-local) 
    2020  * Overwrite Content-Type header in mod_dirlisting instead of inserting (#1614), patch by Henrik Holst 
     21  * Handle EINTR in mod_cgi during write() (#1640) 
    2122 
    2223- 1.4.19 - 2008-03-10 
  • branches/lighttpd-1.4.x/src/mod_cgi.c

    r2107 r2153  
    10591059                                                case ENOSPC: 
    10601060                                                        con->http_status = 507; 
    1061  
    10621061                                                        break; 
     1062                                                case EINTR: 
     1063                                                        continue; 
    10631064                                                default: 
    10641065                                                        con->http_status = 403; 
     
    10721073                                                case ENOSPC: 
    10731074                                                        con->http_status = 507; 
    1074  
    10751075                                                        break; 
     1076                                                case EINTR: 
     1077                                                        continue; 
    10761078                                                default: 
    10771079                                                        con->http_status = 403; 
     
    10881090                                        cq->bytes_out += r; 
    10891091                                } else { 
     1092                                        log_error_write(srv, __FILE__, __LINE__, "ss", "write() failed due to: ", strerror(errno));  
     1093                                        con->http_status = 500; 
    10901094                                        break; 
    10911095                                }