httpd-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From traw...@apache.org
Subject cvs commit: httpd-2.0/server/mpm/threaded threaded.c
Date Tue, 27 Feb 2001 18:46:07 GMT
trawick     01/02/27 10:46:07

  Modified:    server/mpm/threaded threaded.c
  Log:
  trap a couple of initialization errors related to the signal thread
  
  Revision  Changes    Path
  1.9       +12 -2     httpd-2.0/server/mpm/threaded/threaded.c
  
  Index: threaded.c
  ===================================================================
  RCS file: /home/cvs/httpd-2.0/server/mpm/threaded/threaded.c,v
  retrieving revision 1.8
  retrieving revision 1.9
  diff -u -r1.8 -r1.9
  --- threaded.c	2001/02/23 18:17:19	1.8
  +++ threaded.c	2001/02/27 18:46:05	1.9
  @@ -624,7 +624,12 @@
   
       /*done with init critical section */
   
  -    apr_setup_signal_thread();
  +    rv = apr_setup_signal_thread();
  +    if (rv != APR_SUCCESS) {
  +        ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
  +                     "Couldn't initialize signal thread");
  +        clean_child_exit(APEXIT_CHILDFATAL);
  +    }
   
       requests_this_child = ap_max_requests_per_child;
       
  @@ -647,7 +652,12 @@
       apr_threadattr_create(&thread_attr, pchild);
       apr_threadattr_detach_set(thread_attr);
   
  -    apr_create_signal_thread(&thread, thread_attr, check_signal, pchild);
  +    rv = apr_create_signal_thread(&thread, thread_attr, check_signal, pchild);
  +    if (rv != APR_SUCCESS) {
  +        ap_log_error(APLOG_MARK, APLOG_EMERG, rv, ap_server_conf,
  +                     "Couldn't create signal thread");
  +        clean_child_exit(APEXIT_CHILDFATAL);
  +    }
   
       for (i=0; i < ap_threads_per_child - 1; i++) {
   
  
  
  

Mime
View raw message