about summary refs log tree commit homepage
path: root/lib/dtas/player.rb
diff options
authorEric Wong <normalperson@yhbt.net>2013-09-01 02:06:51 +0000
committerEric Wong <normalperson@yhbt.net>2013-09-01 02:12:13 +0000
commit0208f3bfd132d58c31d5db06db6378277fa71c7b (patch)
tree8ed0c5b21b7bc12f7f7f891a6454a88014bdc29b /lib/dtas/player.rb
parent53b984b1e054a0804884ee83e2debe5baea8a222 (diff)
This helps in case dtas-player is hit with SIGKILL or the system
crashes.  This does not fsync(2) as that could introduce delays on
slow filesystems.  Users should open the file manually and fsync
themselves if they need to.
Diffstat (limited to 'lib/dtas/player.rb')
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb
index ba42490..3571a7f 100644
--- a/lib/dtas/player.rb
+++ b/lib/dtas/player.rb
@@ -212,6 +212,8 @@ class DTAS::Player # :nodoc:
     when "source"
       source_handler(io, msg)
+    when "state"
+      state_file_handler(io, msg)
     when "cd"
       chdir_handler(io, msg)
     when "pwd"