Make echo_server use pipes in cwd instead of /tmp by default

This commit is contained in:
Kristóf Tóth 2019-03-28 16:26:47 +01:00
parent 1a28862129
commit 3a2ccc1ea4

View File

@ -9,7 +9,7 @@ class EchoPipeIOServer(PipeIOServer):
if __name__ == "__main__":
pipe_io = EchoPipeIOServer()
pipe_io = EchoPipeIOServer('in', 'out')
signal(SIGTERM, lambda a, b: pipe_io.stop())
signal(SIGINT, lambda a, b: pipe_io.stop())
print('Running pipe IO server with named pipes:')