summaryrefslogtreecommitdiff
path: root/tests/needs_kill.py
blob: 810236bdad60121858c58b4a4ddc99702c7b7f0d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
#!/usr/bin/env python
"""This script can only be killed by SIGKILL."""
import signal, time

# Ignore interrupt, hangup and continue signals - only SIGKILL will work
signal.signal(signal.SIGINT, signal.SIG_IGN)
signal.signal(signal.SIGHUP, signal.SIG_IGN)
signal.signal(signal.SIGCONT, signal.SIG_IGN)

print('READY')
while True:
    time.sleep(10)