Android: Avoid trying to use Android's own ionice, which does not allow specifying a command to run. Fixes transferring files to/from android and probably a few other things.

This commit is contained in:
Joey Hess 2013-12-29 17:32:08 -04:00
parent e3a71c006a
commit d6d5b0a6d8
3 changed files with 9 additions and 0 deletions

View file

@ -52,7 +52,11 @@ getBatchCommandMaker = do
#ifndef mingw32_HOST_OS
nicers <- filterM (inPath . fst)
[ ("nice", [])
#ifndef __ANDROID__
-- Android's ionice does not allow specifying a command,
-- so don't use it.
, ("ionice", ["-c3"])
#else
, ("nocache", [])
]
return $ \(command, params) ->