pew
pew copied to clipboard
Handle signals forwarded by child processes?
https://github.com/sashahart/vex/commit/7677c1e21889386486c7d425a1a392914cffa3c5
Looking at the conversation on the issue that was coming from, it's my opinion pew in
/ inve
should ignore SIGINT
, delegating that entirely to the subprocess.
I ended up implementing this pretty much as per what is in vex, but with a finally
to restore the default signal handler. And I also added a preexec_fn
to restore the signal handler in the child process (which doesn't happen by default).
Will put together a PR if anyone wants it?