From a3fe4eabd4b3f1eaefb2589061e09787c000690d Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 1 Sep 2013 22:13:41 +0000 Subject: player: explicitly stop+wait for sink death at_exit This allows me to hit Ctrl-C on a dtas-player(1) process, wait on termination of the player, and immediately restart it without worrying about sink conflicts upon restart. Before this change, sinks would continue running for a bit (depending on buffer sizes). --- lib/dtas/player.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'lib/dtas') diff --git a/lib/dtas/player.rb b/lib/dtas/player.rb index 3571a7f..2bf2716 100644 --- a/lib/dtas/player.rb +++ b/lib/dtas/player.rb @@ -419,6 +419,7 @@ class DTAS::Player # :nodoc: end while true ensure __current_requeue + stop_sinks trap(:CHLD, old_chld) sev.close if sev # for state file -- cgit v1.2.3-24-ge0c7