kevva / elm-bin

elm-platform bin-wrapper that makes it seamlessly available as a local dependency
MIT License
18 stars 5 forks source link

Add an empty SIGINT handler #35

Closed foriequal0 closed 9 years ago

foriequal0 commented 9 years ago

On elm-repl, Ctrl + C aborts just the current computation, not the entire session. (https://github.com/elm-lang/elm-repl/commit/aa274b78ca6b658c61b32e24573239b128b19949) but node wrapper aborts its session on SIGINT while its child process doesn't, which reads to the error message.

elm-repl: <stdin>: hGetChar: hardware fault (Input/output error) 

Adding an empty SIGINT handler to wrapper can prevent it. (