You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Android device fg/bg face: pending raw echo $- evidence to tell harness/environment apart from the library-entry monitor gap fixed in #1996 #1998
Activity
caomengxuan666 commentedon Oct 29, 2026
Android 复验(2026-10-29,master
e5247747,含 PR #1996)设备:vivo iPA2575 / Android 15 / aarch64 / Termux 无 root。探针:pty 干净 HOME(rc 内
bind项不含 fzf),~/tools/niu -l。#1998 要的原始输出:
m(monitor)在交互登录 shell 里是开的,即宿主面set -m已生效,jobs也能正常显示[1]+ Running …。同轮 fg/bg 观察:
python3 -c 'import time;time.sleep(60)' &→jobs显示[1]+ Running python3 …kill %1→KRC=0,随后jobs显示[1]+ Terminated …,进程确实消失(按 pid 核验/proc/<pid>已无)fg %1/bg %1→ 不再出现niu: fg: no job control;测试序列里fg因作业是长跑外部命令而挂在前台(预期行为),bg无报错另一条与 #1991 有关的确认(维护者对
pgrep自命中的怀疑成立):niu的交互sleep是进程内虚拟实现——sleep 30不产生子进程,所以先前"130 但 pid 存活"的观察是探针pgrep -f自命中造成的假象。改用真实外部命令复测:Ctrl+C 后子进程 9762 已消失,
$?=130 —— 与 PR #1996 修复口径一致。source 可中断性复验: 脚本
echo SRC-START→ 50 行 echo →python3 sleep 10→echo AFTER-SLOW→echo SRC-END,在外部慢命令期间发 INT:输出停在line-49,AFTER-SLOW/SRC-END均未出现,提示符立即回来 —— 中断生效。