| Index: third_party/pexpect/tests/needs_kill.py
|
| diff --git a/third_party/pexpect/tests/needs_kill.py b/third_party/pexpect/tests/needs_kill.py
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..810236bdad60121858c58b4a4ddc99702c7b7f0d
|
| --- /dev/null
|
| +++ b/third_party/pexpect/tests/needs_kill.py
|
| @@ -0,0 +1,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)
|
| +
|
|
|