Skip to content
  • Cheng Shao's avatar
    c3aa0aaa
    ghci: fix ^C handling for wasm iserv · c3aa0aaa
    Cheng Shao authored
    This commit fixes ^C handling for wasm iserv. Previously we didn't
    handle it at all, so ^C would kill the node process and host ghc would
    then crash as well. But native ghc with external interpreter can
    handle ^C just fine and wasm should be no different. Hence the fix:
    wasm iserv exports its signal handler as a js callback to be handled
    by the dyld script. Also see added note for details.
    
    (cherry picked from commit fa2fbd2b)
    (cherry picked from commit 6797c0a4)
    c3aa0aaa
    ghci: fix ^C handling for wasm iserv
    Cheng Shao authored
    This commit fixes ^C handling for wasm iserv. Previously we didn't
    handle it at all, so ^C would kill the node process and host ghc would
    then crash as well. But native ghc with external interpreter can
    handle ^C just fine and wasm should be no different. Hence the fix:
    wasm iserv exports its signal handler as a js callback to be handled
    by the dyld script. Also see added note for details.
    
    (cherry picked from commit fa2fbd2b)
    (cherry picked from commit 6797c0a4)
Loading