From 9729f457a7ece348f8ae0ab5a9e1e326ffc5638e Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Sun, 20 Dec 2015 11:14:14 +0000 Subject: dtas-readahead: use our spawn fix properly Our spawn fix does not cover singleton dispatch from the Process class; only bareword "function" calls. --- bin/dtas-readahead | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'bin') diff --git a/bin/dtas-readahead b/bin/dtas-readahead index 798a5b4..a4664ad 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -95,9 +95,9 @@ def do_ra(fp, pos, w) pp({start_ra: File.basename(path), len: '%.3f' % (len / (1024 * 1024.0)), pos: pos }) - Process.spawn('soxi', path, @redir) - Process.spawn('avprobe', path, @redir) - Process.spawn('ffprobe', path, @redir) + spawn('soxi', path, @redir) + spawn('avprobe', path, @redir) + spawn('ffprobe', path, @redir) fp.advise(:sequential, pos, len) Thread.new(fp.dup) { |d| d.advise(:willneed, pos, len); d.close } -- cgit v1.2.3-24-ge0c7