~justin-fathomdb/nova/justinsb-openstack-api-volumes

« back to all changes in this revision

Viewing changes to vendor/Twisted-10.0.0/twisted/test/process_signal.py

  • Committer: Jesse Andrews
  • Date: 2010-05-28 06:05:26 UTC
  • Revision ID: git-v1:bf6e6e718cdc7488e2da87b21e258ccc065fe499
initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
import sys, signal
 
2
 
 
3
signal.signal(signal.SIGINT, signal.SIG_DFL)
 
4
if getattr(signal, "SIGHUP", None) is not None:
 
5
    signal.signal(signal.SIGHUP, signal.SIG_DFL)
 
6
print 'ok, signal us'
 
7
sys.stdin.read()
 
8
sys.exit(1)