comparison src/core/nginx.c @ 267:83205e0b5522

nginx-0.0.2-2004-02-24-20:31:46 import
author Igor Sysoev <igor@sysoev.ru>
date Tue, 24 Feb 2004 17:31:46 +0000
parents 5238e93961a1
children 7bb9562216ce
comparison
equal deleted inserted replaced
266:5238e93961a1 267:83205e0b5522
647 647
648 ngx_setproctitle("worker process"); 648 ngx_setproctitle("worker process");
649 649
650 #if (NGX_THREADS) 650 #if (NGX_THREADS)
651 651
652 ngx_init_threads(5, 128 * 1024 * 1024, cycle->log); 652 if (ngx_init_threads(5, 128 * 1024 * 1024, cycle->log) == NGX_ERROR) {
653 /* fatal */
654 exit(1);
655 }
653 656
654 for (i = 0; i < 1; i++) { 657 for (i = 0; i < 1; i++) {
655 ngx_create_thread(&tid, ngx_worker_thread_cycle, cycle, cycle->log); 658 if (ngx_create_thread(&tid, ngx_worker_thread_cycle,
659 cycle, cycle->log) != 0)
660 {
661 /* fatal */
662 exit(1);
663 }
656 } 664 }
657 665
658 #endif 666 #endif
659 667
660 for ( ;; ) { 668 for ( ;; ) {