title: Is there a way to sigaction() to a signal handler with multiple parameters?
body: <p>I am using sigaction() to perform an action every time SIGINT is received. All tutorials I have seen use this prototype as a signal handler</p>
  
  <pre><code>void sig_handler(int sig);
  </code></pre>
  
  <p>Is there a way somehow to make this to take more parameters so it suits my needs? So for example</p>
  
  <pre><code>void sig_handler(char* surname, int age);
  </code></pre>
  
  <p>This is my code:</p>
  
  <pre><code>void sig_handler(int sig) {
      printf("SIGINT(%d) received\n", sig);
  }
  
  int main( ){
      struct sigaction act;
      act.sa_handler=sig_handler;
  
      sigaction(SIGINT, &amp;act, NULL);
  
      while(1){};
      return 0 ;
  }
  </code></pre>