avoid even trying to use nice on windows

This commit is contained in:
Joey Hess 2013-10-17 16:29:49 -04:00
parent b6794f174e
commit c02bc07ce0

View file

@ -63,6 +63,7 @@ batchCommandEnv command params environ = do
void $ waitForProcess pid
E.throwIO asyncexception
where
#ifndef mingw32_HOST_OS
p = proc "sh"
[ "-c"
, "exec " ++ nicedcommand
@ -71,3 +72,6 @@ batchCommandEnv command params environ = do
nicedcommand
| Build.SysConfig.nice = "nice " ++ commandline
| otherwise = commandline
#else
p = proc command (toCommand paras)
#endif