fixed: yesod-bin: when C-c, kill yesod-bin and children process

* deleted: `setDelegateCtlc True`
* added: `setCreateGroup True`

When you use a group,
the child process will be terminated when the parent process is terminated.
This commit is contained in:
ncaq 2020-06-29 17:07:23 +09:00
parent a1c6bc553c
commit b3ed4613e7
3 changed files with 4 additions and 2 deletions

View File

@ -345,7 +345,8 @@ devel opts passThroughArgs = do
myPath <- getExecutablePath
let procConfig = setStdout createSource
$ setStderr createSource
$ setDelegateCtlc True $ proc "stack" $
$ setCreateGroup True -- because need when yesod-bin killed and kill child ghc
$ proc "stack" $
[ "build"
, "--fast"
, "--file-watch"

View File

@ -83,6 +83,7 @@ Now some weird notes:
`yesod devel` also writes to a file
`yesod-devel/devel-terminate`. Your devel script should respect this
file and shutdown whenever it exists.
(It may be fixed in 1.6.0.5.)
* If your .cabal file defines them, `yesod devel` will tell Stack to
build with the flags `dev` and `library-only`. You can use this to
speed up compile times (biggest win: skip building executables, thus

View File

@ -1,5 +1,5 @@
name: yesod-bin
version: 1.6.0.4
version: 1.6.0.5
license: MIT
license-file: LICENSE
author: Michael Snoyman <michael@snoyman.com>