Home >
Magazine >
#73 May 2000 >
Python Programming for Beginners >
Listing 4. Ignoring Signal
Wednesday, March 29, 2000 | Last Updated 03:42:26 PM
Listing 4. Ignoring Signal
#! /usr/local/bin/python
import signal
signal.signal(signal.SIGINT, signal.SIG_IGN)
print 'Your script can\'t be stopped with Ctrl+C'
while 1:
continue