title: Send a kill signal to self
body: <p>I have a C++ code that runs a linux command, I want to simulate segfault i.e. <strong>SIGSEGV</strong> while executing that linux command from by C++ code.
  So my code looks like this</p>
  <pre><code>int main(){
      string cmd = &quot;some linux command that should throw seg fault&quot;;
      execute_linux_comand(cmd); // Want to simulate segfault coming while executing this command
  }
  
  </code></pre>
  <p>What should I put in &quot;cmd&quot; so that it can send <strong>SIGSEGV</strong> to the sub-process created by calling this function?</p>