[MLton-user] signal handlers
dherman at ccs.neu.edu
Sat Dec 1 13:48:26 PST 2007
Sweet! One more question: I think I grok the explanation of system call
restart vs. SysErr on pre-emption, but what happens if C code called via
the FFI is interrupted?
Thanks again (again!),
Matthew Fluet wrote:
> 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