Commit 43fb5cd3 authored by unknown's avatar unknown
Browse files

ndb - bug#11623 - "ndb become inresponsive but did not really die"

  block signals in threads making main process get all signals...

parent c9415fd4
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -52,6 +52,16 @@ ndb_thread_wrapper(void* _ss){
      pthread_sigmask(SIG_BLOCK, &mask, 0);
    }
#endif
    {
      /**
       * Block all signals to thread by default
       *   let them go to main process instead
       */
      sigset_t mask;
      sigfillset(&mask);
      pthread_sigmask(SIG_BLOCK, &mask, 0);
    }      
    
    {
      void *ret;
      struct NdbThread * ss = (struct NdbThread *)_ss;