title: How bash handles the jobs when logout?
body: <p>As far as I understood from the books and bash manuals is that. When a user logs out from bash all the background jobs that is started by the user will automatically terminate, if he is not using nohup or disown. But today I tested it : </p>
  
  <ol>
  <li>Logged in to my gnome desktop and accessed gnome-terminal.</li>
  <li><p>There are two tabs in the terminal and in one I created a new user called test and logged in as test</p>
  
  <pre><code>su - test
  </code></pre></li>
  <li><p>started a script. </p>
  
  <pre><code>cat test.sh
  #!/bin/bash
  sleep 60
  printf "hello world!!"
  exit 0
  
  
  ./test.sh &amp;
  </code></pre></li>
  <li><p>After that I logged out of test and closed the tab</p></li>
  <li>In the next tab I exected ps aux as root and found that job is still running. </li>
  </ol>
  
  <p>How this is happening ? </p>