Python Time Bomb


/ Published in: Python
Save to your folder(s)

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


Copy this code and paste it in your HTML
  1. from threading import Timer
  2. Timer(30, lambda : os._exit(1)).start()

Report this snippet


Comments


You need to login to view comments.