fork(2) download
  1. import os
  2.  
  3. try:
  4. os.fork()
  5. finally:
  6. print('Doing important cleanup')
Success #stdin #stdout 0.04s 9216KB
stdin
Standard input is empty
stdout
Doing important cleanup
Doing important cleanup