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
tail follow unit test hangs on non-Windows: sys::Pid::dead() stub always returns false and the test is not cfg-gated #1637
Found in the captain review of PR #1626 (tail follow, #1488 wave).
The unit test follow_with_dead_writer_terminates_like_gnu hangs forever on non-Windows: the non-Windows stub of sys::Pid::dead() always returns false, and the test carries no #[cfg(windows)] gate. The Windows product and CI are unaffected; this only bites local non-Windows test runs.
Fix options (either is fine): gate the test with #[cfg(windows)], or implement a real non-Windows pid-liveness check for the stub.
Destination: small fix lane, 2.0 line. Refs #1626.
Closed manually by captain after PR #1668 merged (0195c57): non-Windows Pid::dead() now calls kill(pid, 0); both nails + the follow test are green on Windows CI. Refs-only PR, no auto-close.
Activity
rust2(tail): GNU follow semantics -f/-F/--retry/--pid (#1488)
caomengxuan666 commentedon Nov 14, 2026
接手:winx #1637 修法车道已开工(工作区 fix-winx-1637)。方案:按 issue 二选一,优先实现非 Windows 真实 pid 存活检查(若不可行则 cfg-gate 测试);修法 + 回归钉,首提交即 draft PR。
fix(tail): report dead pids on non-Windows via kill(pid, 0) (Refs #1637…
caomengxuan666 commentedon Nov 14, 2026
Closed manually by captain after PR #1668 merged (0195c57): non-Windows Pid::dead() now calls kill(pid, 0); both nails + the follow test are green on Windows CI. Refs-only PR, no auto-close.