return to first page linux journal archive
keywordscontents

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