From ddecb9a701438ca7e6e09391675889183150cea2 Mon Sep 17 00:00:00 2001 From: "Adrian C. (anrxc)" Date: Wed, 20 Oct 2010 02:18:25 +0200 Subject: play: unlink FIFO on exit --- play | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/play b/play index 7b19fc7..4305fcf 100644 --- a/play +++ b/play @@ -1481,6 +1481,10 @@ class Application: XTERM and sys.stderr.write("\033]0;%s\a" % "xterm") tty and tty.tcsetattr(sys.stdin.fileno(), tty.TCSADRAIN, self.tcattr) print + try: + if os.path.exists(CONTROL_FIFO): os.unlink(CONTROL_FIFO) + except IOError: + pass def run(self): while 1: -- cgit v1.2.3