The letter

One letter a week, starting soon.

The week's signal, what shipped, what is worth running tonight, and the editor's note. No tracking, no ads, nothing else.

We keep your address, your language and the date you joined, nothing else. Every letter has a one-click unsubscribe link that deletes the record.

← Accept All   Archive
Zenn (AI)Japan

SIGINT で止めた claude -p は終了コード 0 を返す:途中で止めた実行を成功と見誤る(2.1.319 の実測)

11.28

claude -p を子プロセスとして回し、時間切れや中断で途中で止める仕組みを書いていないでしょうか。その子の終了コードで「最後まで走ったか」を判定すると、止めた実行を成功として数えてしまいます。2.1.319 では、SIGINT で止めた claude -p は終了コード 0 で終わりました。SIGTERM なら 143 です。

Models & releases
Read at Zenn (AI) ↗

Related

More from Zenn (AI) on Accept All.