[MLton-user] signal handlers

Dave Herman dherman at ccs.neu.edu
Sat Dec 1 13:32:34 PST 2007


> fun h () = print "hello world\n"
> val () = MLton.Signal.setHandler (Posix.Signal.cont,
>                                   MLton.Signal.Handler.simple h)

Excellent, thanks! I suspected something like this would work, but the 
MLtonSignal page doesn't say MLton.Signal.t = Posix.Signal.signal.

Thanks,
Dave



More information about the MLton-user mailing list