comparison src/c/http.c @ 1522:4d0b80dd4c37

Introduce URWEB_STACK_SIZE environment variable (based on a patch by Hao Deng)
author Adam Chlipala <adam@chlipala.net>
date Tue, 02 Aug 2011 14:31:37 -0400
parents 17393c5e2b90
children ea131de361d9
comparison
equal deleted inserted replaced
1521:001638622c4f 1522:4d0b80dd4c37
309 printf("Listening on port %d....\n", uw_port); 309 printf("Listening on port %d....\n", uw_port);
310 310
311 { 311 {
312 pthread_t thread; 312 pthread_t thread;
313 313
314 if (pthread_create(&thread, NULL, client_pruner, &ls)) { 314 if (pthread_create_big(&thread, NULL, client_pruner, &ls)) {
315 fprintf(stderr, "Error creating pruner thread\n"); 315 fprintf(stderr, "Error creating pruner thread\n");
316 return 1; 316 return 1;
317 } 317 }
318 } 318 }
319 319
320 for (i = 0; i < nthreads; ++i) { 320 for (i = 0; i < nthreads; ++i) {
321 pthread_t thread; 321 pthread_t thread;
322 names[i] = i; 322 names[i] = i;
323 if (pthread_create(&thread, NULL, worker, &names[i])) { 323 if (pthread_create_big(&thread, NULL, worker, &names[i])) {
324 fprintf(stderr, "Error creating worker thread #%d\n", i); 324 fprintf(stderr, "Error creating worker thread #%d\n", i);
325 return 1; 325 return 1;
326 } 326 }
327 } 327 }
328 328