cleanup
This commit is contained in:
parent
fd1824c3f7
commit
f6bcab3f57
2 changed files with 15 additions and 2 deletions
|
@ -88,7 +88,6 @@ sshTranscript opts input = do
|
|||
hClose readh
|
||||
|
||||
ok <- checkSuccessProcess pid
|
||||
return ()
|
||||
return (transcript, ok)
|
||||
|
||||
{- Ensure that the ssh public key doesn't include any ssh options, like
|
||||
|
|
|
@ -169,4 +169,18 @@ xmppGitRelay = do
|
|||
|
||||
{- Relays git receive-pack to and from XMPP, and propigates its exit status. -}
|
||||
xmppReceivePack :: Assistant Bool
|
||||
xmppReceivePack = error "TODO"
|
||||
xmppReceivePack = do
|
||||
feeder <- asIO1 toxmpp
|
||||
reader <- asIO1 fromxmpp
|
||||
ok <- liftIO $ do
|
||||
(Just inh, Just outh, _, pid) <- createProcess $ p
|
||||
{ std_in = CreatePipe
|
||||
, std_out = CreatePipe
|
||||
, std_err = Inherit
|
||||
}
|
||||
|
||||
liftIO $ mapM_ killThread [t1, t2]
|
||||
where
|
||||
p = proc "git" params
|
||||
toxmpp =
|
||||
fromxmpp =
|
||||
|
|
Loading…
Add table
Reference in a new issue