diff options
author | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-20 02:18:25 +0200 |
---|---|---|
committer | Adrian C. (anrxc) <anrxc@sysphere.org> | 2010-10-20 02:18:25 +0200 |
commit | ddecb9a701438ca7e6e09391675889183150cea2 (patch) | |
tree | 8111d44863ac5ed70c3b33cb2c8574959db7f7cf | |
parent | 3c86fac055abc5c446801f5624d13a8edc352048 (diff) | |
download | play-ddecb9a701438ca7e6e09391675889183150cea2.tar.xz |
play: unlink FIFO on exit
-rw-r--r-- | play | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -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: |