From c2e04a5715d4cfa2b42fa09ba1f641d3ce741685 Mon Sep 17 00:00:00 2001 From: Eric Wong Date: Tue, 17 Jan 2017 08:37:36 +0000 Subject: readahead: fix running commands with non-files --- bin/dtas-readahead | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/bin/dtas-readahead b/bin/dtas-readahead index 68186dc..6a8edf7 100755 --- a/bin/dtas-readahead +++ b/bin/dtas-readahead @@ -159,7 +159,9 @@ begin cur = YAML.load(c.req('current')) while @todo_ra > 0 && fp.nil? if current = cur['current'] - track = current['infile'].freeze + track = current['infile'] + break unless track.kind_of?(String) + track.freeze fp = work[track] ||= do_open(track) cur_pid = current['pid'] if fp -- cgit v1.2.3-24-ge0c7