Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import signal
- def catch_ctrl_C(sig,frame):
- print "Not gonna quit !!"
- signal.signal(signal.SIGINT, catch_ctrl_C) #prevent Ctrl + C from happening
- while 1:
- #a little looping here and then --> code that will allow Ctrl + C to be performed again
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement