ut-proj / undertone

Making Music with Extempore, OSC, and SuperCollider in LFE/OTP
Apache License 2.0
59 stars 4 forks source link

Capture ^C and ^D to exit #89

Closed oubiwann closed 3 years ago

oubiwann commented 3 years ago

Right now, a SIGINT or SIGTERM don't seem to executing the full termination sequence when run via rebar3 and the LFE REPL. Both OS processes for sendmidi and receivemidi remain running. Note that calling (exit) from the REPL does go through the proper termination sequence (but only sendmidi is killed; receivemidi remains running).

Areas to investigate:

Related to #88

Part of epic #80

oubiwann commented 3 years ago

Great write-up on signal handling in OTP:

oubiwann commented 3 years ago

That being said, maybe the issues with fully terminating OS processes ...

[a few hours later]

Yup!

Closing ...