finally part run twice on Ctrl-C

26 Feb
2009
26 Feb
'09
5:31 a.m.
Hi, I've got the following code: import Control.Exception import System.Cmd main = system "sleep 1m" `finally` putStrLn "goodbye" When compiled with GHC 6.10.1.20090225, if I hit Ctrl-C during the sleep, I get the goodbye printed twice. If I leave evaluation to finish normally I get goodbye once. Is this a bug? Thanks Neil
5928
Age (days ago)
5928
Last active (days ago)
0 comments
1 participants
participants (1)
-
Neil Mitchell