title: starting a new process group from bash script
body: <p>I basically want to run a script (which calls more scripts) in a new process group so that I can send signal to all the processes called by the script. </p>
  
  <p>In Linux, I found out setsid helps me in doing that, but this is not available on FreeBSD. </p>
  
  <p>Syntax for setsid (provided by util-linux-ng). </p>
  
  <pre><code>setsid /path/to/myscript
  </code></pre>
  
  <p>I, however learnt that session and process group are not the same. But starting a new session also solves my problem. </p>