ALT Linux Bugzilla
– Attachment 3341 Details for
Bug 18991
не работает на x86_64
New bug
|
Search
|
[?]
|
Help
Register
|
Log In
[x]
|
Forgot Password
Login:
[x]
|
EN
|
RU
[patch]
hedgewars-0.9.9-server-ghc
hedgewars-0.9.9-server-ghc.patch (text/plain), 1.76 KB, created by
Ilya Mashkin
on 2009-02-27 00:55:06 MSK
(
hide
)
Description:
hedgewars-0.9.9-server-ghc
Filename:
MIME Type:
Creator:
Ilya Mashkin
Created:
2009-02-27 00:55:06 MSK
Size:
1.76 KB
patch
obsolete
>--- hedgewars-src-0.9.9/netserver/hedgewars-server.hs >+++ hedgewars-src-0.9.9/netserver/hedgewars-server.hs >@@ -7,7 +7,7 @@ import IO > import System.IO > import Control.Concurrent > import Control.Concurrent.STM >-import Control.Exception (handle, finally, Exception, IOException) >+import Control.OldException (handle, finally, Exception, IOException) > import Control.Monad > import Maybe (fromMaybe, isJust, fromJust) > import Data.List >@@ -39,7 +39,7 @@ timerLoop messagesChan = forever $ do > > acceptLoop :: Socket -> TChan ClientInfo -> IO () > acceptLoop servSock acceptChan = >- Control.Exception.handle (\(_ :: Exception) -> putStrLn "exception on connect" >> acceptLoop servSock acceptChan) $ >+ Control.OldException.handle (\(_ :: Exception) -> putStrLn "exception on connect" >> acceptLoop servSock acceptChan) $ > do > (cHandle, host, _) <- accept servSock > >@@ -89,7 +89,7 @@ clientRecvLoop handle chan = > clientSendLoop :: Handle -> TChan[String] -> TChan[String] -> IO() > clientSendLoop handle clChan chan = do > answer <- atomically $ readTChan chan >- doClose <- Control.Exception.handle >+ doClose <- Control.OldException.handle > (\(e :: Exception) -> if isQuit answer then return True else sendQuit e >> return False) $ do > forM_ answer (\str -> hPutStrLn handle str) > hPutStrLn handle "" >@@ -97,7 +97,7 @@ clientSendLoop handle clChan chan = do > return $ isQuit answer > > if doClose then >- Control.Exception.handle (\(_ :: Exception) -> putStrLn "error on hClose") $ hClose handle >+ Control.OldException.handle (\(_ :: Exception) -> putStrLn "error on hClose") $ hClose handle > else > clientSendLoop handle clChan chan
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 18991
: 3341