summaryrefslogtreecommitdiffstats
path: root/testing/mozbase/mozprocess/tests/scripts/ignore_sigterm.py
diff options
context:
space:
mode:
Diffstat (limited to 'testing/mozbase/mozprocess/tests/scripts/ignore_sigterm.py')
-rw-r--r--testing/mozbase/mozprocess/tests/scripts/ignore_sigterm.py13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/mozbase/mozprocess/tests/scripts/ignore_sigterm.py b/testing/mozbase/mozprocess/tests/scripts/ignore_sigterm.py
new file mode 100644
index 0000000000..15870d6267
--- /dev/null
+++ b/testing/mozbase/mozprocess/tests/scripts/ignore_sigterm.py
@@ -0,0 +1,13 @@
+import signal
+import time
+
+signal.pthread_sigmask(signal.SIG_SETMASK, {signal.SIGTERM})
+
+
+def main():
+ while True:
+ time.sleep(1)
+
+
+if __name__ == "__main__":
+ main()