Python it is possible to spawn background process which runs even if main process exits?
<p>What I'm trying to achieve:
I want that my main process spawn another independent python process. 
Like:</p>

<pre><code>for i in range(2):
    p = proces()
    p.start()

sys.exit(0)
</code></pre>

<p>And my spawned processes should run in the background doing some task :)
Because at the moment, if I spawn a process using <code>multiprocessing</code> library and then close my main scripts these processes also exits.</p>