interrupt function for sending SIGINT.

only on darwin so far, because my laptop is darwin.