summaryrefslogtreecommitdiff
path: root/Utility/Daemon.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joeyh@joeyh.name>2017-10-25 14:45:23 -0400
committerGravatar Joey Hess <joeyh@joeyh.name>2017-10-25 14:45:23 -0400
commitae1515f19426daf13b55089e1c7da5f49f62b7eb (patch)
treee0429e591983d0d85174aa2d81bbb4ff41039924 /Utility/Daemon.hs
parent035761f4bcc17ca097900af166f1e66bc9ac5880 (diff)
build for windows with forked win32 package that has terminateProcessId
Get ugly reversion out of CHANGELOG. Also, relocated the windows stack.yaml to top, and updated windows build instructions. This commit was sponsored by Henrik Riomar on Patreon.
Diffstat (limited to 'Utility/Daemon.hs')
-rw-r--r--Utility/Daemon.hs4
1 files changed, 2 insertions, 2 deletions
diff --git a/Utility/Daemon.hs b/Utility/Daemon.hs
index 5c0ea4169..2cb0864d2 100644
--- a/Utility/Daemon.hs
+++ b/Utility/Daemon.hs
@@ -14,7 +14,7 @@ import Utility.PID
#ifndef mingw32_HOST_OS
import Utility.LogFile
#else
-import Utility.WinProcess
+import System.Win32.Process (terminateProcessId)
import Utility.LockFile
#endif
@@ -162,7 +162,7 @@ stopDaemon pidfile = go =<< checkDaemon pidfile
#ifndef mingw32_HOST_OS
signalProcess sigTERM pid
#else
- terminatePID pid
+ terminateProcessId pid
#endif
{- Windows locks a lock file that corresponds with the pid of the process.