summaryrefslogtreecommitdiff
path: root/Utility/Batch.hs
diff options
context:
space:
mode:
Diffstat (limited to 'Utility/Batch.hs')
-rw-r--r--Utility/Batch.hs17
1 files changed, 10 insertions, 7 deletions
diff --git a/Utility/Batch.hs b/Utility/Batch.hs
index d96f9d3..1d66881 100644
--- a/Utility/Batch.hs
+++ b/Utility/Batch.hs
@@ -7,11 +7,18 @@
{-# LANGUAGE CPP #-}
-module Utility.Batch where
+module Utility.Batch (
+ batch,
+ BatchCommandMaker,
+ getBatchCommandMaker,
+ toBatchCommand,
+ batchCommand,
+ batchCommandEnv,
+) where
import Common
-#if defined(linux_HOST_OS) || defined(__ANDROID__)
+#if defined(linux_HOST_OS)
import Control.Concurrent.Async
import System.Posix.Process
#endif
@@ -29,7 +36,7 @@ import qualified Control.Exception as E
- systems, the action is simply ran.
-}
batch :: IO a -> IO a
-#if defined(linux_HOST_OS) || defined(__ANDROID__)
+#if defined(linux_HOST_OS)
batch a = wait =<< batchthread
where
batchthread = asyncBound $ do
@@ -51,11 +58,7 @@ 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"])
-#endif
, ("nocache", [])
]
return $ \(command, params) ->