Skip to content

Instantly share code, notes, and snippets.

@timeartist
Created March 4, 2015 00:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save timeartist/3b9dec6720c595c694b8 to your computer and use it in GitHub Desktop.
Save timeartist/3b9dec6720c595c694b8 to your computer and use it in GitHub Desktop.
import signal
from os import getpid
from time import sleep
def never_die(signal, frame):
while True:
print "Can't stop won't stop"
signal.signal(signal.SIGTERM, never_die)
print getpid()
while True:
print "EAT"
print "SLEEP"
print "RAVE"
print "REPEAT"
sleep(1)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment