Skip to content

[windows][executor] pipeline 阻塞等待不轮询信号邮箱:事件形 Ctrl+C 下纯外部命令 pipeline 不结算 #2020

Closed

Description

@caomengxuan666

来源:niubash #669 修复簇(PR #678 已合并)的相邻面发现,REPORT ~/workspace/fix-669-ctrlc/REPORT.md §4/§7。

现状(代码可证,Windows 面):引擎 pipeline 等待(pipeline_exec 的普通 blocking wait)在 Windows 上不轮询自信号邮箱。服务器正常合成 CTRL_C_EVENT 时,niu 宿主 handler 会把 SIGINT 记入引擎邮箱,但跑纯真实外部命令的 pipeline(如 ping -n 30 127.0.0.1 | cat)要等舞台自然结束才结算,^C 不生效。对照:unix 面同类等待已由 #1996 修复(切片式 wait_external_child + sleep_interruptibly 均走 observe_signals_while_blocked),本条是 Windows pipeline 等待面的不同点位,勿与 #1996 并案。

GNU 期望:^C 立即终止 pipeline、退出码 130 结算。

与 #669 修复的关系:niu 宿主 ForegroundWatch 的组广播对记录注入形 ^C 的 pipeline 部分有效(虚拟舞台自带 observe);事件形 ^C 的纯外部 pipeline 仍缺引擎侧轮询,本条补此腿。

验收:Windows 真机/桌面 ConPTY 钉——事件形 ^C 下 ping -n 30 127.0.0.1 | cat 立即结算 130;回归钉带本单号;unix 面行为不变。

归宿:引擎 Windows 信号小批(与 #669 同线续批,主会话派簇)。

Activity

  1. added
    bug
    P2-medium
    on Oct 29, 2026
  2. added this to the 1.5.0 milestone on Oct 29, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

P2-mediumbug

Type

No type

Projects

No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions