/ 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
from threading import Timer Timer(30, lambda : os._exit(1)).start()
You need to login to post a comment.
