Brian Denheyer <briand@aracnet.com> wrote:
On Mon, 25 Jan 2010 23:19:53 -0800I just want a routine to run every 15 min.
Thomas DuBuisson <thomas.dubuisson@gmail.com> wrote:
> 1) Don't use System.Posix.Signals
> It isn't necessary and makes your code less portable
>
> 2) The POSIX SIGALRM is used/caught by the RTS and that is why you are
> seeing strange behavior.
>
> 3) Consider using Haskell exceptions from Control.Concurrent
> (throwTo). Not sure what you want to do but you can always
> "myThreadId >>= \tid -> forkIO $ threadDelay someDelayTime >>
> (throwTo tid someExceptionVal)"
>
I'm not clear on why the throwTo is in you example.