title: Are SIGRTMIN and SIGRTMAX safe to use in signal handlers?
body: <p>The code I'm working with has a shared signal handler that switches on the signal number to handle it appropriately.</p>
  
  <p>I'm adding a custom signal.  Something like this</p>
  
  <pre><code>static void signal_handler (int s)
  {
      if ( s == SIGTERM ) clean_up () ;
  
      else if ( s == SIGRTMIN+1 ) ; // do nothing
  }
  </code></pre>
  
  <p><code>SIGRTMIN</code> and <code>SIGRTMAX</code> are #defines of function calls which initialize static data (in the implementations I've seen on google code search)</p>
  
  <p>Signal handlers are supposed to be non-reentrant. Does the use of static data in the accessor to <code>SIGRTMIN</code> and <code>SIGRTMAX</code> make these macros unsafe to use in a signal handler?</p>