update for telegram-cli fork
This commit is contained in:
parent
bd52198433
commit
3ce3844d9d
@ -17,7 +17,7 @@ args = ["-d", "-P", show port]
|
||||
|
||||
telegramProcess :: IO ProcessHandle
|
||||
telegramProcess = do
|
||||
(_,_,_, handle) <- createProcess (proc program args) { create_group = True }
|
||||
(_,_,_, handle) <- createProcess (proc program args)
|
||||
return handle
|
||||
|
||||
|
||||
@ -28,8 +28,7 @@ telegramSocket = recoverAll timeout (const connect)
|
||||
|
||||
|
||||
closeTelegram :: Handle -> ProcessHandle -> IO ()
|
||||
closeTelegram socket handle =
|
||||
hClose socket >> replicateM_ 2 (interruptProcessGroupOf handle)
|
||||
closeTelegram socket handle = hClose socket >> terminateProcess handle
|
||||
|
||||
|
||||
send :: Handle -> String -> IO ()
|
||||
|
@ -12,7 +12,7 @@ cabal-version: >=1.10
|
||||
|
||||
executable oglaf
|
||||
main-is: Main.hs
|
||||
build-depends: base >=4.8 && <4.9, network,
|
||||
build-depends: base == 4.9.*, network,
|
||||
bytestring, text, retry, tagsoup,
|
||||
MissingH, process, temporary,
|
||||
http-conduit, xml-conduit, html-conduit
|
||||
|
Loading…
Reference in New Issue
Block a user