Changeset 2134
- Timestamp:
- 03/21/2008 03:17:06 PM (5 months ago)
- Location:
- trunk
- Files:
-
- 2 modified
-
NEWS (modified) (1 diff)
-
src/fcgi-stat-accel.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/NEWS
r2133 r2134 25 25 * fixed out of range access in fd array (#1562, #372, #1603) (CVE-2008-0983) 26 26 * fix auth-ldap configuration in tests 27 * fcgi-stat-accel: Fix unused var / indentation 27 28 28 29 - 1.5.0-r19.. - -
trunk/src/fcgi-stat-accel.c
r1653 r2134 41 41 FCGX_FPrintF(stream, "X-LIGHTTPD-send-file: %s\r\n\r\n", filename); 42 42 43 #define UNUSED(x) ( (void)(x) ) 43 44 44 45 static void *doit(void *a){ … … 46 47 int rc; 47 48 char *filename; 49 UNUSED(a); 48 50 49 51 FCGX_InitRequest(&request, 0, /* FCGI_FAIL_ACCEPT_ON_INTR */ 0); 50 52 51 53 while(1){ 52 int fd;54 int fd; 53 55 //Some platforms require accept() serialization, some don't. The documentation claims it to be thread safe 54 56 // static pthread_mutex_t accept_mutex = PTHREAD_MUTEX_INITIALIZER; … … 103 105 } 104 106 105 /* block the current thread by executing one */107 /* block the current thread by executing one */ 106 108 doit(NULL); 107 108 for (i = 0; i < thread_count; i++) {109 110 for (i = 0; i < thread_count; i++) { 109 111 pthread_join(id[i], NULL); 110 112 }

