From a35bb603bac1218d51cbef9b56b2d6841333f313 Mon Sep 17 00:00:00 2001 From: itycodes Date: Mon, 13 Oct 2025 07:50:12 +0200 Subject: [PATCH] Remove a forgotten debug assert The assert crashed the program when a race was detected because of Issue #1 --- src/main.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/main.rs b/src/main.rs index ace97bd..bd94652 100644 --- a/src/main.rs +++ b/src/main.rs @@ -208,7 +208,9 @@ fn main_loop(child: Pid, ptys: &Ptys) { std::process::exit(-1); } - assert!(res != Ok(2), "Race condition between stdio and stderr"); + // Race condition, will just default to stderr unless kernel ordering is used + // -------------------------------------------------------------------------- + //assert!(res != Ok(2), "Race condition between stdio and stderr"); if unsafe{USE_KERNEL_ORDERING} { match handle_poll(