ClickHouse/tests/integration/test_executable_dictionary/user_scripts/input_signalled.py

14 lines
311 B
Python
Raw Normal View History

2021-12-25 13:34:17 +00:00
#!/usr/bin/python3
import sys
import os
import signal
import time
if __name__ == "__main__":
2021-12-25 13:34:17 +00:00
for line in sys.stdin:
os.signal(os.getpid(), signal.SIGTERM)
updated_line = line.replace("\n", "")
print(updated_line + "\t" + "Key " + updated_line, end="\n")
2021-12-25 13:34:17 +00:00
sys.stdout.flush()