diff options
author | Joey Hess <joeyh@joeyh.name> | 2016-08-18 15:49:47 -0400 |
---|---|---|
committer | Joey Hess <joeyh@joeyh.name> | 2016-08-18 15:49:47 -0400 |
commit | 4e53adca698bde2430f30a6b1bd10bf7cdd52e1e (patch) | |
tree | e5a52933bdd597b599a4c25b10e06dd5cd6dd24c /Gpg.hs | |
parent | 07afb8fc1eb3a850b13f7aa09cc0ca3b0b495a2c (diff) | |
download | keysafe-4e53adca698bde2430f30a6b1bd10bf7cdd52e1e.tar.gz |
fix deadlock
Diffstat (limited to 'Gpg.hs')
-rw-r--r-- | Gpg.hs | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -12,6 +12,7 @@ import UI import System.Process import Data.List.Split import Data.Maybe +import System.IO import System.Exit import qualified Data.ByteString as B import qualified Data.ByteString.UTF8 as BU8 @@ -61,6 +62,7 @@ writeSecretKey (SecretKey b) = do (Just hin, _, _, ph) <- createProcess (proc "gpg" ps) { std_in = CreatePipe } B.hPut hin b + hClose hin exitcode <- waitForProcess ph case exitcode of ExitSuccess -> return () |