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.
This commit is contained in:
parent
9f2b7dfc3e
commit
833b3f06cd
9 changed files with 22 additions and 38 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue