title: User defined signal 1
body: <p>I'm developing a client-server program and when I'm trying to send a signal to another process, it just display this sentence "User defined signal 1". As you can see in the code, I am using the <code>SIGUSR1</code>. </p>
  
  <p>Client:</p>
  
  <pre><code>void Exit(req req)
  {
      kill(req.server_pid, SIGUSR1);
      fprintf(stdout,"\n[CLIENT] Closing the client...\n");
      sleep(2);
      unlink(FIFO_CLIENT);
      exit(0);
  }
  </code></pre>
  
  <p>Server:</p>
  
  <pre><code>void ClientLeft (int sig)
  {
      fprintf(stdout,"\n[CLIENT] Just left the game!");
  }
  
  int main()
  {
      signal(SIGUSR1, ClientLeft);
  }
  </code></pre>
  
  <p>I don't understand why the client doesn't run the rest of the lines, and even the server doesn't show the printf. </p>