dumping ground for random patches and texts
 help / color / mirror / Atom feed
* [PATCH] readahead: handle queued commands properly
@ 2016-11-05  1:04 Eric Wong
  0 siblings, 0 replies; only message in thread
From: Eric Wong @ 2016-11-05  1:04 UTC (permalink / raw)
  To: spew

We can't do much for readahead when it comes to dtas-player
running arbitrary commands.
---
 bin/dtas-readahead | 1 +
 1 file changed, 1 insertion(+)

diff --git a/bin/dtas-readahead b/bin/dtas-readahead
index b4b7311..6034763 100755
--- a/bin/dtas-readahead
+++ b/bin/dtas-readahead
@@ -133,6 +133,7 @@ def do_ra(fp, pos, w)
 end
 
 def do_open(path)
+  return unless path # could be a command
   if path =~ /\.ya?ml\z/
     File.open(path) do |fp|
       buf = fp.read(4)
-- 
EW


^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2016-11-05  1:04 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-11-05  1:04 [PATCH] readahead: handle queued commands properly Eric Wong

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).