[Haskell-cafe] Re: syscall, sigpause and EINTR on Mac OSX

Bulat Ziganshin bulatz at HotPOP.com
Mon Dec 12 06:10:36 EST 2005


Hello Branimir,

Monday, December 12, 2005, 3:47:12 AM, you wrote:

BM> Perhaps you can implement this in Haskell? dedicate single thread to
BM> just handle ^C signal? this is how you should do it properly,
BM> but I would go with console client anyway:

moreover, that must be the MAIN THREAD, as i sayed in previous msg.
smth like this:

main = do id <- forkIO real_main
          installInterruptsHandler (killThread id)
          wait forever...

i will try it in my windows prog


-- 
Best regards,
 Bulat                            mailto:bulatz at HotPOP.com





More information about the Haskell-Cafe mailing list