patch-src_main_event_c 726 B

123456789101112131415161718192021
  1. --- freeradius-server-2.1.8.orig/src/main/event.c 2009-12-30 16:44:35.000000000 +0100
  2. +++ freeradius-server-2.1.8/src/main/event.c 2010-02-05 19:43:55.803074411 +0100
  3. @@ -1177,7 +1177,7 @@ static void wait_a_bit(void *ctx)
  4. }
  5. stop_processing:
  6. -#if defined(HAVE_PTHREAD_H) || defined(WITH_PROXY)
  7. +#if defined(HAVE_PTHREAD_H)
  8. /*
  9. * A child thread MAY still be running on the
  10. * request. Ask the thread to stop working on
  11. @@ -1646,7 +1646,9 @@ static int originated_coa_request(REQUES
  12. */
  13. request->num_proxied_requests = 1;
  14. request->num_proxied_responses = 0;
  15. +#ifdef HAVE_PTHREAD_H
  16. request->child_pid = NO_SUCH_CHILD_PID;
  17. +#endif
  18. update_event_timestamp(request->proxy, request->proxy_when.tv_sec);