From e79adb55ac3b94bbdd40d8b6e2ed35ab32a5fd9d Mon Sep 17 00:00:00 2001 From: Jonas Maier <> Date: Thu, 5 Mar 2026 19:29:27 +0100 Subject: clean up reload logic --- src/run/builtin.rs | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'src/run/builtin.rs') diff --git a/src/run/builtin.rs b/src/run/builtin.rs index da6f4f2..5524fd7 100644 --- a/src/run/builtin.rs +++ b/src/run/builtin.rs @@ -43,13 +43,7 @@ impl Builtin for re { session.raw.disable(); match Command::new("cargo").arg("build").status() { Ok(status) if status.success() => { - // build of new shell succeeded - - // unwind the entire stack intentionally to free resources - // the catch handler will check the boolean and execve into - // the new executable - super::RELOAD.store(true, std::sync::atomic::Ordering::SeqCst); - std::panic::resume_unwind(Box::new(42)); + crate::reload::begin_reload(); } _ => (), } -- cgit v1.2.3