Advertisement
svenhoefer

Avoid error: variable ‘__cancel_routine’ might be clobbered

Jun 28th, 2017
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.68 KB | None | 0 0
  1. diff --git a/src/nhttpd/yhttpd.cpp b/src/nhttpd/yhttpd.cpp
  2. index 1aa0c55..694cf53 100644
  3. --- a/src/nhttpd/yhttpd.cpp
  4. +++ b/src/nhttpd/yhttpd.cpp
  5. @@ -132,7 +132,7 @@ void * nhttpd_main_thread(void *) {
  6.         return (void *) EXIT_FAILURE;
  7.     }
  8.     /* we pthread_cancel this thread from the main thread, but still want to clean up */
  9. -   pthread_cleanup_push(thread_cleanup, yhttpd);
  10. +   //pthread_cleanup_push(thread_cleanup, yhttpd);
  11.  #ifndef Y_CONFIG_FEATURE_THREADING
  12.     yhttpd->flag_threading_off = true;
  13.  #endif
  14. @@ -146,7 +146,7 @@ void * nhttpd_main_thread(void *) {
  15.  
  16.         yhttpd->run();
  17.     }
  18. -   pthread_cleanup_pop(0);
  19. +   //pthread_cleanup_pop(0);
  20.     delete yhttpd;
  21.     yhttpd = NULL;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement