pew icon indicating copy to clipboard operation
pew copied to clipboard

Handle signals forwarded by child processes?

Open berdario opened this issue 10 years ago • 2 comments

https://github.com/sashahart/vex/commit/7677c1e21889386486c7d425a1a392914cffa3c5

berdario avatar Dec 25 '14 23:12 berdario

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.

ryanhiebert avatar Dec 26 '14 17:12 ryanhiebert

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?

Jc2k avatar Sep 18 '15 09:09 Jc2k