title: os.system('exit') in python
body: <p>My friend is in a macOS environment and he wanted to call <code>os.system('exit')</code> at the end of his python script to make the terminal close. It doesn't. This doesn't surprise me but I would like to know <em>what</em> exactly is going on between the python script and the terminal when this call is made.</p>
  
  <p>In my mental simulation the terminal should have to tell you that there are still running jobs, but that doesn't happen either.</p>
  
  <p>As a side question : will some less common terminals close when a process calls this?</p>