[MLton-user] signal handlers

Matthew Fluet fluet at tti-c.org
Sat Dec 1 13:35:02 PST 2007


On Sat, 1 Dec 2007, Dave Herman wrote:
>>  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.

It does now. ;-)




More information about the MLton-user mailing list