Created
June 14, 2015 00:33
-
-
Save bcicen/b4a7d8fff4e0740dfeb2 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
#!/usr/bin/env python | |
import signal | |
from random import randrange | |
large_dict = {} | |
def sig_handler(s,f): | |
pass | |
def loop(): | |
while True: | |
large_dict[randrange(99999999999)] = randrange(99999999999) | |
signal.signal(signal.SIGTERM, sig_handler) | |
loop() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment