rbb         99/02/16 10:42:02

  Modified:    pthreads/src/main http_main.c
  Log:
  Fix compile errors associated with last patch.
  Submitted by:  Manoj and Ryan
  
  Revision  Changes    Path
  1.33      +2 -4      apache-apr/pthreads/src/main/http_main.c
  
  Index: http_main.c
  ===================================================================
  RCS file: /home/cvs/apache-apr/pthreads/src/main/http_main.c,v
  retrieving revision 1.32
  retrieving revision 1.33
  diff -u -r1.32 -r1.33
  --- http_main.c       1999/02/16 18:31:53     1.32
  +++ http_main.c       1999/02/16 18:41:57     1.33
  @@ -2503,7 +2503,7 @@
        (void) ap_update_child_status(my_child_num, i, SERVER_STARTING, 
                                      (request_rec *) NULL);
        
  -     if (pthread_create(&thread, &thread_attr, worker_thread, my_info)) {
  +     if (pthread_create(&thread, NULL, worker_thread, my_info)) {
            ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf,
                         "pthread_create: unable to create worker thread");
            /* 
  @@ -2536,7 +2536,7 @@
            my_info->sd = lr->fd;
            lr->used = 1;
   
  -         if (pthread_create(&thread, &thread_attr, accept_thread, my_info)) {
  +         if (pthread_create(&thread, NULL, accept_thread, my_info)) {
                ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf,
                             "pthread_create: unable to create acceptor 
thread");
                /* 
  @@ -2562,8 +2562,6 @@
           ap_log_error(APLOG_MARK, APLOG_ALERT, server_conf, "pthread_sigmask 
failed");
       }
   #endif
  -
  -    pthread_attr_destroy(&thread_attr);
   
       (void) ap_update_child_status(my_child_num, i, SERVER_STARTING, 
                                  (request_rec *) NULL);
  
  
  

Reply via email to