/ Published in: Python
Making a python process exit with error code 1 after 30 seconds. Exit is unclean (no garbage is collected, no flushed buffers, etc...).
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
from threading import Timer Timer(30, lambda : os._exit(1)).start()