summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAdrian C. (anrxc) <anrxc@sysphere.org>2010-10-20 02:18:25 +0200
committerAdrian C. (anrxc) <anrxc@sysphere.org>2010-10-20 02:18:25 +0200
commitddecb9a701438ca7e6e09391675889183150cea2 (patch)
tree8111d44863ac5ed70c3b33cb2c8574959db7f7cf
parent3c86fac055abc5c446801f5624d13a8edc352048 (diff)
downloadplay-ddecb9a701438ca7e6e09391675889183150cea2.tar.xz
play: unlink FIFO on exit
-rw-r--r--play4
1 files changed, 4 insertions, 0 deletions
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: