Skip to content

Commit 0db485c

Browse files
authored
Create new process groups for newly spawned processes (#42)
1 parent 6c9e229 commit 0db485c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/Hedgehog/Extras/Test/Process.hs

+2
Original file line numberDiff line numberDiff line change
@@ -332,6 +332,8 @@ procFlex' execConfig pkg binaryEnv arguments = GHC.withFrozenCallStack . H.evalM
332332
return (IO.proc bin arguments)
333333
{ IO.env = getLast $ execConfigEnv execConfig
334334
, IO.cwd = getLast $ execConfigCwd execConfig
335+
-- this allows sending signals to the created processes, without killing the test-suite process
336+
, IO.create_group = True
335337
}
336338

337339
-- | Compute the project base. This will be based on either the "CARDANO_NODE_SRC"

0 commit comments

Comments
 (0)