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

RSS Icon Subscribe to comments

You need to login to post a comment.