[MLton-user] signal handlers

Dave Herman dherman at ccs.neu.edu
Sat Dec 1 13:09:52 PST 2007


But how do you actually trap them? I can't find the ML analog of 
signal(...).

Thanks again,
Dave

Wesley W. Terpstra wrote:
> On Dec 1, 2007, at 9:29 PM, Dave Herman wrote:
>> I couldn't figure out from the MLtonSignal page how to catch signals 
>> like SIGWINCH and SIGCONT. Is this possible without resorting to the FFI?
> 
> Posix.Signal.cont exists, but I don't think SIGWINCH is readily 
> available. You can use Posix.Signal.fromWord, but you'd have to know 
> it's numeric value.
> 




More information about the MLton-user mailing list