aboutsummaryrefslogtreecommitdiff
path: root/Utility
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2013-12-29 17:32:08 -0400
committerGravatar Joey Hess <joey@kitenet.net>2013-12-29 17:32:08 -0400
commitfe6e5c7e8f455beb806501a5bfce368fcfae88ff (patch)
tree8425904a942a3e34ebb81062a06b0b0e2a9584d2 /Utility
parentc72b6f9f3ca51a45532dbdcc069fe96f1f3f17fc (diff)
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.
Diffstat (limited to 'Utility')
-rw-r--r--Utility/Batch.hs4
1 files changed, 4 insertions, 0 deletions
diff --git a/Utility/Batch.hs b/Utility/Batch.hs
index 61026f19e..cb3d918f3 100644
--- a/Utility/Batch.hs
+++ b/Utility/Batch.hs
@@ -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) ->