diff options
author | Roman Smrž <roman.smrz@seznam.cz> | 2025-08-05 22:04:11 +0200 |
---|---|---|
committer | Roman Smrž <roman.smrz@seznam.cz> | 2025-08-05 22:04:11 +0200 |
commit | c07525ac4692a2ee9c76bd0bd53c195c8164480f (patch) | |
tree | c8b84685ee88c3c46f5d9f7b19404ea6e261bd8b /src/Script/Shell.hs | |
parent | e4a392c1c3089e0ec77601d99cd19be4403bb3a1 (diff) |
Diffstat (limited to 'src/Script/Shell.hs')
-rw-r--r-- | src/Script/Shell.hs | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/Script/Shell.hs b/src/Script/Shell.hs index 9bbf06c..95d4fe4 100644 --- a/src/Script/Shell.hs +++ b/src/Script/Shell.hs @@ -69,6 +69,10 @@ spawnShell procNode procName script = do ( herr, pstderr ) <- liftIO $ createPipe procHandle <- fmap (Right . (, statusVar)) $ forkTestUsing forkOS $ do executeScript procNode procName statusVar pstdin pstdout pstderr script + liftIO $ do + hClose pstdin + hClose pstdout + hClose pstderr let procKillWith = Nothing let process = Process {..} |