title: c++ multithread - Signal processor thread
body: <p><a href="http://pubs.opengroup.org/onlinepubs/009604499/functions/sigprocmask.html" rel="nofollow">http://pubs.opengroup.org/onlinepubs/009604499/functions/sigprocmask.html</a></p>
  
  <p>Documentation show the example where all signals that need to <code>wait</code> are store at the global scope variable (filled at main() <strong>before</strong> signal thread started.
  At the example signal thread started <strong>after</strong> <code>SIG_BLOCK</code> blocking signals.</p>
  
  <p>Is it correct and will not cause some undefined behavior or crashes, if I will create my signal thread <strong>before</strong> <code>SIG_BLOCK</code> blocking signals at the main() and then I will block signals for all other newly created threads? </p>