Return to Snippet

Revision: 57584
at June 12, 2012 17:58 by jarnaldich


Updated Code
from threading import Timer
Timer(30, lambda : os._exit(1)).start()

Revision: 57583
at June 1, 2012 18:13 by jarnaldich


Updated Code
from threading import Timer
Timer(30, lambda : os._exit(1)).run()

Revision: 57582
at June 1, 2012 18:06 by jarnaldich


Initial Code
Timer(30, lambda : os._exit(1)).run()

Initial URL

                                

Initial Description
Making a python process exit with error code 1 after 30 seconds. Exit is unclean (no garbage is collected, no flushed buffers, etc...).

Initial Title
Python Time Bomb

Initial Tags
python

Initial Language
Python