Steps and entrypoint to yield control from Kapow! handlers

This commit is contained in:
Roberto Abdelkader Martínez Pérez
2019-08-29 16:22:57 +02:00
parent ed00f2c3d7
commit b8d76e0aca
3 changed files with 82 additions and 4 deletions
@@ -0,0 +1,12 @@
#!/usr/bin/env python
import signal
import sys
import os
if __name__ == '__main__':
test_runner_fifo = sys.argv[1]
with open(test_runner_fifo, 'w') as other_side:
other_side.write(f"{os.getpid()};{os.environ['KAPOW_HANDLER_ID']}\n")
signal.pause()