Mercurial > urweb
comparison src/c/fastcgi.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 | 36f7d1debb37 |
children | ea131de361d9 |
comparison
equal
deleted
inserted
replaced
1521:001638622c4f | 1522:4d0b80dd4c37 |
---|---|
567 sin_size = sizeof their_addr; | 567 sin_size = sizeof their_addr; |
568 | 568 |
569 { | 569 { |
570 pthread_t thread; | 570 pthread_t thread; |
571 | 571 |
572 if (pthread_create(&thread, NULL, client_pruner, &ls)) { | 572 if (pthread_create_big(&thread, NULL, client_pruner, &ls)) { |
573 fprintf(stderr, "Error creating pruner thread\n"); | 573 fprintf(stderr, "Error creating pruner thread\n"); |
574 return 1; | 574 return 1; |
575 } | 575 } |
576 } | 576 } |
577 | 577 |
578 for (i = 0; i < nthreads; ++i) { | 578 for (i = 0; i < nthreads; ++i) { |
579 pthread_t thread; | 579 pthread_t thread; |
580 names[i] = i; | 580 names[i] = i; |
581 if (pthread_create(&thread, NULL, worker, &names[i])) { | 581 if (pthread_create_big(&thread, NULL, worker, &names[i])) { |
582 fprintf(stderr, "Error creating worker thread #%d\n", i); | 582 fprintf(stderr, "Error creating worker thread #%d\n", i); |
583 return 1; | 583 return 1; |
584 } | 584 } |
585 } | 585 } |
586 | 586 |