Created
March 4, 2015 00:06
-
-
Save timeartist/3b9dec6720c595c694b8 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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