wryun / es-shell

es: a shell with higher-order functions
http://wryun.github.io/es-shell/
Other
307 stars 25 forks source link

_es_ should exit from process-killing signal exceptions by killing itself with that signal instead of simply exiting #112

Closed jpco closed 1 week ago

jpco commented 2 weeks ago

See https://github.com/golang/go/issues/13484 and what it cites as https://www.cons.org/cracauer/sigint.html.

This change would let es die with the signal that actually caused it to die, rather than some unremarkable exit code. Some things like systemd expect to be able to kill a process and see it die with the signal it used, considering it a problem if the process does something else.

jpco commented 1 week ago

Actually es does the right thing already. I have no idea how it does, though :)