about summary refs log tree commit homepage
path: root/bin/dtas-readahead
diff options
context:
space:
mode:
authorEric Wong <e@80x24.org>2024-04-26 07:04:14 +0000
committerEric Wong <e@80x24.org>2024-05-07 08:52:59 +0000
commitb7e6406f79a1b27e50997e02ef6985ae0a33b14b (patch)
treee1cf505863f0eca68643ab37683aacc2b90cbe78 /bin/dtas-readahead
parent1deaad83499ad73df20a64a6a859c2d0dded1e0f (diff)
downloaddtas-b7e6406f79a1b27e50997e02ef6985ae0a33b14b.tar.gz
soxi or ffprobe may infinite loop on bad files, so be sure to
let these processes timeout properly.
Diffstat (limited to 'bin/dtas-readahead')
-rwxr-xr-xbin/dtas-readahead2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/dtas-readahead b/bin/dtas-readahead
index f2ab514..c61d317 100755
--- a/bin/dtas-readahead
+++ b/bin/dtas-readahead
@@ -25,7 +25,7 @@ w.req_ok('watch')
 c = DTAS::UNIXClient.new
 @max_ra = 30 * 1024 * 1024
 null = DTAS.null
-@redir = { err: null, out: null, in: null }.freeze
+@redir = { err: null, out: null, in: null, rlimit_cpu: [ 1, 2 ] }.freeze
 require 'pp'
 
 def seek_to_cur_pos(cur_pid, fp)