New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
peco.Cancel action #107
Comments
In that respect, peco's SIGINT handling is also broken. Yeah, time to fix it. :) |
あれ、EscおしてCancelさせたらちゃんと1でexitした。SIGINTは壊れてた。 |
はい, そうなります. パイプの途中が exit status=0以外でも後続のコマンドは実行されて
|
私の環境の問題ですかね ? 手元にある Linuxだと全部後続のコマンドが実行されてしまっています. |
OSごとに違ってたらいやだなー |
Macで確認しましたが, Macだと後続のコマンドが実行されませんでした |
OSの差ではなく, Macだと
は何も出力しませんが, findutils(Linux)だと lsの結果が出力されます. |
すみません、子供と寝落ちしてました。ちょっと今日その辺り見ますね。 |
結局のところxargsはexit値がnon-zeroでもうごいちゃうってことなのかなー。
で、SIGINTとEscをまずそろえるべきだと思うので、これは直しましょう。 Linuxの場合にパイプが途中で切れないっていうのは結局pecoの問題ではないということでいいんですかね。ちょっと混乱してますが。 |
とりあえず 9fcce5c でSIGTERM/INTはこうなる
|
とりあえず @syohex さん待ち。 |
はい, そう見えるのは |
はーい。ではとりあえずシグナルを直したのでマージしますね。 |
んで、とりあえずクローズします。やっぱりまだなんかおかしい場合は新規にお願いします。 |
了解です. 期待することの実現方法がそもそもわからないので, |
I suppose
peco.Cancel
should work like sendingSIGINT
.(
peco.Cancel
should kills processes in same session group.)Now successive command is executed if
peco.Cancel
is executed.For example,
On the other hand, cancel command of
percol
(C-c
) works like sending SIGINT.The text was updated successfully, but these errors were encountered: