From 4dd832c6c9b786f1d0b8c05b29d94ec0f28db734 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 25 Aug 2013 08:25:17 +0000 Subject: command: remove kill, we no longer rely on it Instead, we rely on closing the pipe (EOF or SIGPIPE) to stop sources and sinks. This way we remove the possibility of old and new processes operating on the same pipe and causing strange audio overlaps. --- lib/dtas/command.rb | 5 ----- 1 file changed, 5 deletions(-) (limited to 'lib/dtas/command.rb') diff --git a/lib/dtas/command.rb b/lib/dtas/command.rb index 500a6d7..67f5768 100644 --- a/lib/dtas/command.rb +++ b/lib/dtas/command.rb @@ -28,11 +28,6 @@ module DTAS::Command # :nodoc: end end - def kill(sig = :TERM) - # always kill the pgroup since we run subcommands in their own shell - Process.kill(sig, -@pid) - end - def on_death(status) @pid = nil end -- cgit v1.2.3-24-ge0c7