projects
/
ghc-hetmet.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
[project @ 1999-03-16 13:20:07 by simonm]
[ghc-hetmet.git]
/
ghc
/
tests
/
concurrent
/
should_run
/
conc008.hs
1
{-# OPTIONS -fglasgow-exts #-}
2
3
module Main where
4
5
import Concurrent
6
import Exception
7
8
-- Send ourselves a KillThread signal, catch it and recover.
9
10
main = do
11
id <- myThreadId
12
catchAllIO (killThread id) (\e -> putStr (show e))