What I'm trying to achieve: I want that my main process spawn another independent python process. Like:
for i in range(2):
p = proces()
p.start()
sys.exit(0)
And my spawned processes should run in the background doing some task :)
Because at the moment, if I spawn a process using multiprocessing
library and then close my main scripts these processes also exits.